facebookarchive / php-graph-sdk

The Facebook SDK for PHP provides a native interface to the Graph API and Facebook Login. https://developers.facebook.com/docs/php
Other
3.17k stars 1.96k forks source link

URL blocked: This redirect failed because the redirect URI is not white-listed in the app's client OAuth settings. #1059

Closed codearthungary closed 5 years ago

codearthungary commented 6 years ago

Hi guys, I get this message from FB: "URL blocked: This redirect failed because the redirect URI is not white-listed in the app's client OAuth settings. Make sure that the client and web OAuth logins are on and add all your app domains as valid OAuth redirect URIs."

It worked so far and had no problem with it. I already downloaded and installed the latest PHP-SDK, but not changed. I check all my URI, and server in white list and all OK. I wrote the FB support, they say this: "I checked your URL and it seems correct to me. I see that you are using the PHP SDK. There was a bug on that SDK which was stopping people for login with Facebook. Make sure you are using the last version of the SDK".

Any solution or suggestion?

MonggulTeam commented 5 years ago

i had this problem. which is correct url for Valid OAuth Redirect URIs. is this correct ? (https://www.example.com/my-fb-login/fb-callback.php)

Any solution or suggestion?

yguedidi commented 5 years ago

Thank you for using the Facebook PHP SDK! The bug was fix in 5.6.2, make sure you use this version or higher.

If you need help about using it, you should ask your questions on StackOverflow and tag them with the facebook-php-sdk tag.

So I'm closing this, but if you found a bug in the SDK or think about a feature, feel free to open a new GitHub issues.

codearthungary commented 5 years ago

Hi yguedidi, I'm using 5.6.3 sdk but the error is permanent. Server IP added to the white list. My callback URI: "https://www.facebook.com/v2.12/dialog/oauth?client_id=1640455976014380&state=3182eba045b4f7bdfd9dc9fa395a0f7e&response_type=code&sdk=php-sdk-5.6.3&redirect_uri=https%3A%2F%2Ffishinfobay.com%2Fauth%2Ffacebooklogin&scope=" I'm has got check my all redirect URIs by URI validation checker on the FB and that say all OK.