Facebook Connect - how to display in a popup?
If you do this,
http://w开发者_JAVA技巧ww.facebook.com/dialog/oauth/?
scope=email,user_birthday&
client_id=123050457758183&
redirect_uri=http://www.example.com/response&
response_type=token&
display=popup
It works but it redirects to facebook URL, however if I load it in a popup, then facebook does not display the page at all. (instead it displays facebook logo see image below
Why does this happen??? how do you display facebook login in a popup window anyways? (because its not working)
It works when I navigate to that page. How do you open the popup? Perhaps it gets blocked by a popup blocker..
May I recommend you to look into using FBJS to open the popup? Something like this:
FB.login(function() {
// handle the response
}, { perms: 'email,user_birthday' });
精彩评论