hey, great tutorial and an awesome plugin; however I seem to be running into some problems with it; it appears that the Facebook Connect component causes a redirection loop when using the Login button. Please advise
Hi Nick,
thanks for the video sharing!
I am trying your code here but sadly I can't even get the share button out on the page. I have put the plugin on the main plugin folder as per your example, but seems like it is not loaded at all.
any advice on where I should start looking from? I am using it with cakephp 1.3.10. the plugin I got it from "http://www.webtechnick.com/wtn/blogs/view/238/Facebook_Plugin_v2_0_Graph_System"
Another things is that facebook seems to have made some layout change this week and now the appID & API _key are the same. not sure if this could cause any effect on the plugin.
Hey friends. I try to figure out facebook user email. I used $this->authUser[$this->User->alias]['email'] = $this->session['email'] in connect.php file. But, it returns null and i am getting an error. I think, problem is $this->session['email']. Because when i use $this->authUser[$this->User->alias]['email'] = "example@example.com, it works. How can i save user email from facebook to my database? I need help!!!
Great tutorial, Nick. A problem I am having, though, is that I cannot find the "User" model anywhere. I want to make associations between the User model and other models (e.g., User HABTM Clubs), and I need to define those relationships in the User model, correct? If not, where do I define those relationships?
Hey, I have a problem I'm having a hard time to determine why/how it happens... While the user first opens the app, he is already logged-in to facebook (it's a canvas app). It is supposed to create a user if there's no user present with the same "facebook_id". It does create the user, but if in the mean time the user refreshes the page, it creates a duplicate, with same facebook_id and different id... Any idea how I can solve this?
@daydreamer: In the most recent version of the plugin (v2.4), I've added callback functions (beforeFacebookSave(), beforeFacebookLogin(), afterFacebookLogin()). You'll need to add some logic in your afterFacebookLogin() function to redirect to $this->redirect($this->Auth->redirect); Hope that helps
Hi Nick,
thanks for the plugin.
I am trying to create a FB app using this plugin.
However, when I'm trying to login using the default Auth, I get redirected to the page I initially wanted to be (but could because I wasn't authorized) after my login.
Using the plugin, the authentication works perfect, but I don't get redirected anymore and I stay on the login view.
Do you know how I can fix this?
Thanks
68 Comments