Can FB.login () appear as a page for facebook iframe application?

here is my code?

FB.login(function(response){ console.log(response) if(response.session){ connectFacebook(); } },{perms:'email,read_stream,publish_stream,offline_access'}); 

I need to allow the user to use my application.

The problem is displaying FB.login in a popup style, but I need it to display in page style, like this:

alt text

How can i do this? How to change the code?

Thank you!

+4
source share
1 answer

If you don't want to pop up, you'll have to go with Facebook OAuth 2.0 for web applications. Read about it here: http://developers.facebook.com/docs/authentication/

+3
source

All Articles