Click here to Skip to main content
12,355,505 members (71,046 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# Facebook-API 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 21-Sep-12 17:11pm
   
Thank you. That has been a huge help!
Tadit Dash 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
Top Experts
Last 24hrsThis month


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100