简体   繁体   中英

Facebook Login PHP SDK works locally but not on the server

hi my facebook login works fine on my local server, i make the app live, update 'app domains' on the settings page and also the 'Valid OAuth redirect URIs' on the product settings page, i am still getting the error:

"Graph returned an error:Can't load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and sub-domains of your app to the App Domains field in your app settings."

I have tried multiple varieties of the domain, ive tried adding the /index.php page as well as the standard URL to the redirect URI's and still no luck.

Ive made sure the redirect URI in my code matches the one on facebook.

Im sure its something simple im missing but i cant see it

[index.php **request to API made][3]

[protected_page.php **redirect URI page][4]

It appears there are reported different variations of this bug recently: https://developers.facebook.com/bugs/518422995172099/

I'm going nuts with this issue since yesterday as well and can't seem to validate these domains at all.

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