Click here to Skip to main content
15,910,358 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
C#
{
   "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
Updated 21-Sep-12 10:29am
v2

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...
 
Share this answer
 
v2
Comments
Shahir15 21-Sep-12 17:11pm    
Thank you. That has been a huge help!
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900