Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook API error code 191 [duplicate]

Tags:

facebook

api

Possible Duplicate:
Facebook API error 191

I'm developing a Facebook app. When I attempt to get an access token, I get the following message:

An error occurred with test. Please try again later.

API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration.

https://developers.facebook.com/apps/.../summary

I've configured the app's domain (appsdot.xxx.com), name and other attributes.

What is causing this error, and how do I fix it?

like image 887
The Mask Avatar asked Sep 12 '11 01:09

The Mask


2 Answers

The redirect_uri must contain the Site URL or Canvas URL as defined in your App Settings. I always get this error when I set a redirect_uri that doesn't contain the URLs in App Settings.

like image 97
Johnny Oshika Avatar answered Oct 23 '22 03:10

Johnny Oshika


I got this error because I had a trailing slash on my Canvas URL and neglected to include the trailing slash in the redirect_uri.

like image 29
Stuart Avatar answered Oct 23 '22 04:10

Stuart