简体   繁体   中英

use facebook app with different websites

i know that its not possible to register more than one website url to same facebook app, but there is a solution i think, this solution is to make some sort of a login service in a fixed url and login through this url.

in wordpress, there are some plugins works with your facebook ( posting, uploading, etc..) works with thier own facebook app, you don't have to make your app, i noticed the when i am logging in, it redirects me to thier website first then to facebook and then return to me, this solution that i am talking about .... one of these plugins called wordbooker

so i made an app and gave my website url to it, and made a .php page in my website (which will be the login service) i sends to it the url that i want to login to facebook from it, then this .php page go to facebook and logged in and and returns to my page then to the requested page.

i sends all parameters returned from facebook login (state and code) to the requested website but it does not logged in, i don't know why? i think i misunderstabding something ...

so can you help please ...

You can only define one website in the app, the only way is to use subfolders or subdomains.

Btw, it is also against the facebook rules, facebook apps must be used for only one site/purpose.

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