Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# FacebookAPI OAuth
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:27am
Edited 21-Sep-12 10:29am
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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  
v2
Comments
Shahir15 at 21-Sep-12 17:11pm
   
Thank you. That has been a huge help!
Tadit Dash at 21-Sep-12 17:17pm
   
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
0 OriginalGriff 248
1 Maciej Los 210
2 Sergey Alexandrovich Kryukov 160
3 Peter Leow 155
4 George Jonsson 135


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