Until lately, my application was working great with Facebook connect.
When you click on the login with facebook button, the popup shows up, and clicking allow does half its job:
Facebook connects to my secret controller that I set up in the Post-Authorize Callback URL, but instead of closing the popup and redirecting the user to the homepage, it shows the website in the popup.
The URL also looks weird; it includes a lot of variables:
http://dev2.mysite.com/?perms=email,user_birthday,user_location,read_friendlists&selected_profiles=.....&installed=1&session={%22session_key%22:%222.ngQ0..............2A__.3600.1283803200-573147092%22,%22uid%22:3.......3,%22expires%22:1283803200,%22secret%22:%22bMse.......sQ__%22,%22sig%22:%22f7446..........fafdfbeda%22}
I tried everything, but nothing’s working.
I also checked that the xd_receiver is still present.
Also, all the tutorials I’ve looked through are talking about a connect tab and a connect URL field, but none are available anymore.
When I go to my application settings, I have only a Facebook integration tab
with the following fields:
-
post authorize url: http://dev2.mysite.com/secret_controller_for_fb/
-
Post-Authorize Redirect: http://dev2.mysite.com/
-
canvas url: http://dev2.42pix.com/
Any help would be very appreciated!
After digging around, I found something interesting:
First, I’m not alone.
The example available at this page: http://big-glow-mama.heroku.com/ (git: http://github.com/holden/authlogic_openid_selector_example) suffers from the problem.
Also, when I change the onlogin value to: document.location.href=document.location.href;
the popup closes, refreshes the background, but does not login the user. I then need to click on the login button again to get logged in.
If any one has an idea, I’d love to hear from you!
I moved to Oauth2 and everything looks fine now.