开发者

oauth popup window is blank when using facebook JS library

开发者 https://www.devze.com 2023-03-13 23:50 出处:网络
I am integrating facebook single signon using the facebook J开发者_如何学Goavascript library. I am using localhost for testing my app. Here is the setup on facebook for the app -

I am integrating facebook single signon using the facebook J开发者_如何学Goavascript library. I am using localhost for testing my app. Here is the setup on facebook for the app -

Site URL: http://localhost/home/index/

Site Domain: localhost

App runs on port 80 of localhost

After the user logs in and authorizes the app in the popup window, the popup window goes blank. It does not redirect to my app url which I have specified.


I ended up using OmniAuth for my rails app to add Facebook login. It is a a perfect plugin for facebook authentication, very easy to use. You can look at the Railscast tutorial on how to use OmniAuth: http://asciicasts.com/episodes/241-simple-omniauth

0

精彩评论

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

关注公众号