Using iFrame and login facebook

I am using iFrame to load the user login page. For email login, it is completely has no problem.
For facebook login, it prompt a pop up and hide the entire screen with login interface. When the user successful to login, it gives a blank white page.

I hope there is a direction for me how to handle facebook login. I must use the webpage to login due to the server session problem.

Thanks a lot.

@babyken,

You might take a look at $cordovaOauth as part of ngCordova:

http://ngcordova.com/docs/plugins/oauth/

The correct way to sign into Facebook is with Oauth. An example of this can be seen here:

Regards,

1 Like