Click here to Skip to main content
Sign Up to vote bad
good
See more: C#FacebookAPIOAuth
Hi guys I am trying to integrate Facebook authentication into my website, so i created and registered my App on Facebook(Got my App ID and secret). I have tried many different ways to code the OAuth. All are giving me the same result. I have found the most meaningful error.
{
   "error": {
      "message": "Invalid redirect_uri: Given URL is not permitted by the application configuration.",
      "type": "OAuthException",
      "code": 191
   }
}
 
My App Domain and site URL does not start with WWW(as it is hosted by my university). So is it because of my App domain or site URL, because they do not start with WWW?
Posted 21 Sep '12 - 10:27
Edited 21 Sep '12 - 10:29


1 solution

Please check this Facebook “Invalid redirect_uri”, but the url looks fine to me[^].
 
Your redirect url: http://dennys-m.appspot.com/fb_login/ must match the `canvas url` in https://developers.facebook.com/apps/ configuration panel.
 
Fortunately, these days Facebook gives the error message `Invalid redirect_uri: Given URL is not allowed by the Application configuration`. About a year ago no such exception appeared, just strange results.

 
Hope it helps you.
 
Thanks...
  Permalink  
Comments
Shahir15 - 21 Sep '12 - 17:11
Thank you. That has been a huge help!
Tadit Dash - 21 Sep '12 - 17:17
Any time @Shahir15... My pleasure... Thanks a lot for accepting... Regards, Tadit

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 496
1 Mahesh Bailwal 342
2 Maciej Los 228
3 Aarti Meswania 215
4 Arun Vasu 174
0 Sergey Alexandrovich Kryukov 9,607
1 OriginalGriff 7,214
2 CPallini 3,943
3 Rohan Leuva 3,261
4 Maciej Los 2,758


Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 21 Sep 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid