We followed the steps to in the Migration guide to add Instagram API with Instagram Business login to our existing app. When testing the login flow, we're getting the following error:
{"error_type": "OAuthException", "code": 400, "error_message": "Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request"}
However, the redirect uri is identical to the one used in the OAuth dialog request.
We've tried every variation of the URL, and it's not accepting it. It uses https, has a trailing /
and no formatting changes seem to help.
Maybe it'll help to share some URLs so people can help you debug?...
Have a look at: Instagram > API setup with Instagram business login > 3. Set up Instagram business login > Business login settings > OAuth redirect URIs Confirm that the URI there is the same one shown in the Embed URL in step 3. The hard-coded one with the Copy button next to it.
We've confirmed the URL is identical. What we've provided for the URI redirect is correctly formatted and present in the embed URL.
We used the exact same settings in a brand new business app and it works as expected. It does not work when added to our existing business apps.
Could you share the guide to migrate to the Instagram API with Instagram Business login? I have searched the whole internet and there is nothing clear as to what needs to be done to go from Basic API to the Business one with IG login. Thank you!
https://developers.facebook.com/docs/instagram-platform/instagram-api-with-instagram-login/migration-guide
Update: Using the exact same settings in a brand new business app works as expected. Has anyone gotten it to work on an existing app?
i hava the same problem [0] Error response data: { [0] error_type: 'OAuthException', [0] code: 400, [0] error_message: 'Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request' [0] }