简体   繁体   中英

How can I connect to facebook using a non popup Login page?

I have made the project about facebook-api using javascript and jquery. I connected the facebook, but It must open a popup to do the login.

I want to make a non-popup login page. so How to solve this problem?

Not sure if this can be done with Javascript SDK, but maybe use PHP SDK to generate the signup link?

https://developers.facebook.com/docs/reference/php/

This cannot be done using the JavaScript SDK since it'll lose its session. However take a look at https://developers.facebook.com/docs/reference/php/facebook-getLoginUrl/ this works about the same as the JavaScript SDK you'll just need to set a Location header to redirect the user.

Make sure you have specified the correct (absolute) redirect_uri when requesting a login url

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM