开发者

rails facebook connect and new application settings editor

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 talki开发者_StackOverflow社区ng 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!


And finally, I found something else, the facebook connect button works well if you don't request any extended permissions otherwise it fails!


Nothing helpful to offer Julien except that I am also seeing this same issue today. If I don't ask for extended permissions everything is fine. Must be some bug at the facebook end mustn't it?


Clearing just my cookies doesn't help, but clearing my whole browser history makes this work again. Once.


I moved to Oauth2 and everything looks fine now.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜