Facebook App Api Error Code 191
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more api error description: the specified url is not owned by the application about Stack Overflow the company Business Learn more about hiring developers or posting ads redirect_uri is not owned by the application with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow error message: redirect_uri is not owned by the application. is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Facebook API error 191 up vote 74 down vote favorite 28 I'm
Netbackup Error 191
trying to integrate my project with Facebook. I'm taking baby steps at first and just trying to login, get a Facebook session, and get some user data. I'm developing it locally so my Facebook application settings are: site URL: http://127.0.0.1:8888/mySite/ The canvas URL is the same as above. I haven't specified a site domain. However, when I click on the login button, I get an error: API Error Code: 191 oauthexception code 191 API Error Description: The specified URL is not owned by the application Error Message: redirect_uri is not owned by the application. At the moment I haven't written any server-side code to deal with redirects, etc. All I've done is add the JavaScript SDK based on the tutorial in Facebook for Websites. What have I done wrong? It's obviously something to do with my Facebook application settings, but I can't see what! facebook facebook-javascript-sdk share|improve this question edited Jun 7 at 20:39 Laurel 3,95981540 asked Jan 14 '11 at 13:56 musoNic80 2,16553045 For readers: please notice that this question and the accepted answer apply both to local server & development/testing, and real servers and urls! –Stefano Jul 4 '12 at 8:16 add a comment| 9 Answers 9 active oldest votes up vote 86 down vote accepted UPDATE: To answer the API Error Code: 191 The redirect_uri should be equal (or relative) to the Site URL. Tip: Use base URLs instead of full URLs pointing to specific pages. NOT RECOMMENDED: For example, if you use www.mydomain.com/fb/test.html as your Site URL and having www.mydomain.com/fb/secondPage.html as redirect_uri this will give you the 191 error. RECOMMENDED: So instead have your Site URL set to a base URL like: www.mydomain
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site facebook invalid redirect_uri: can't load url About Us Learn more about Stack Overflow the company Business Learn more about
Facebook Developers
hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up API Error Code: 191 http://stackoverflow.com/questions/4691782/facebook-api-error-191 up vote 11 down vote favorite yep, getting the 191 error. I've researched and found this question to be helpful: facebook api error 191 My URL looks like: https://www.facebook.com/dialog/oauth?client_id=&redirect_uri=http%3a%2f%2flocalhost%2fFb.201109Birthday%2fOAuth2.aspx However, I get an error: 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. I've read everywhere http://stackoverflow.com/questions/7409532/api-error-code-191 that the urls must match up to what's listed in the application's setting page. I've got App Domain = localhost Canvas Url = http://localhost/Fb.201109Birthday/Birthday.aspx? Secure Canvas Url = http://localhost/Fb.201109Birthday/Birthday.aspx? I've also tried local.facebook-apps.com (replaced "localhost" everywhere above with "local.facebook-apps.com") with a hosts file entry to point to 127.0.0.1. But all of these scenarios still give the 191. facebook api oauth-2.0 share|improve this question asked Sep 13 '11 at 23:00 DMCS 27.7k115391 3 possible duplicate of Facebook API error 191 –genesis Oct 26 '11 at 19:02 add a comment| 5 Answers 5 active oldest votes up vote 6 down vote accepted Remove the Birthday.aspx from the Canvas URLs. share|improve this answer answered Sep 13 '11 at 23:26 bbrown 4,56032939 1 That was it! Thanks a tonne. :) –DMCS Sep 13 '11 at 23:41 1 Please don't ask new questions in comments, @Enrique. Very few people will see them, and there's no good way for people who do see them to respond. Ask a new question of your own instead! –Pops♦ Oct 26 '11 at 19:16 add a comment| up vote 3 down vote i was also getting this error when i creat
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss http://stackoverflow.com/questions/21250516/facebook-api-error-code-191 the workings and policies of this site About Us Learn more http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/379422-facebook-api-error-code-191 about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping is not each other. Join them; it only takes a minute: Sign up Facebook API Error Code: 191 up vote 0 down vote favorite I would really appreciate some help. I've searched around, and I feel like I've tried everything but to no avail. API Error Code: 191 API Error Description: The specified URL is not owned by the application is not owned Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration. These are my settings: App Domains: localhost Canvas URL: http://localhost/friendsmash/ Secure Canvas URL: *empty* App Available to Public: No Valid OAuth redirect URIs: http://localhost/friendsmash/ Edit: I get the error when I try to go to the canvas URL. In other words, I put: http://localhost/friendsmash/ in my browser. It redirects me here: https://www.facebook.com/dialog/oauth?client_id=592670390826338&redirect_uri=https%3A%2F%2Fapps.facebook.com%2Ftestappertest%2F&state=8712a908d02c6b6fc3fa9c19c9747296&scope=email%2Cpublish_actions Then, I see the error. When I go to the canvas page instead, I get a blank page. As for the code, I am following this tutorial: https://developers.facebook.com/docs/games/canvas/canvas-tutorial I censored the app id and secret. Anyway, this is the relevant part of the code: $app_id, 'secret' => $app_secret, )); // Get the current user $user = $facebook->getUser(); // If the user has not installed the app, redirect them to the Login Dialog i
4 vB4 Support & Troubleshooting Join us on Facebook, Twitter and YouTube. Welcome to the vBulletin support forums! In the forums you can receive professional support and assistance with any issues you might have with your vBulletin Products. If you are having problems posting in the relevant areas for your software, please see this topic. Announcement Collapse No announcement yet. Facebook API ERROR CODE:191 ??? Collapse X Collapse Posts Latest Activity Search Page of 1 Filter Time All Time Today Last Week Last Month Show All Discussions only Photos only Videos only Links only Polls only Filtered by: Clear All new posts Previous Next K!nG Senior Member Join Date: Nov 2010 Posts: 273 #1 [Forum] Facebook API ERROR CODE:191 ??? Tue 4th Jan '11, 8:16pm Hi guys, I just tried to connect my vb to facebook i did everything that was shown in vb instructions and facebook.....and now i am getting this error. When i click "FCONNECT" button fron my forum new window comes up for fb email n pass and on that same window i get this error in red box , "Invalid Argument Given URL is not allowed by the Application configuration." but after i log in by putting email and password i get this error on that same page. "API Error Code: 191 API Error Description: The specified URL is not owned by the application Error Message: redirect_uri is not owned by the application." Any help will be apprecited guys Thanks in advance Tags: None K!nG Senior Member Join Date: Nov 2010 Posts: 273 #2 Tue 4th Jan '11, 9:17pm Aryte never mind.... i figured it out Problem Resolved Comment Post Cancel miketrin New Member Join Date: Jun 2006 Posts: 27 #3 Thu 6th Jan '11, 6:38pm it'd be helpful if you mentioned how you resolved it. Comment Post Cancel DoubleGlasses New Member Join Date: Oct 2009 Posts: 7 #4 Fri 14th Jan '11, 3:21am I've suddenly started seeing this error although some of my users can register with the FaceBook Connect. I'd love to hear what the fix was. Comment Post Can