Click here to Skip to main content
13,354,132 members (57,630 online)
Rate this:
Please Sign up or sign in to vote.
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 11:27am
Updated 21-Sep-12 11:29am

1 solution

Rate this: bad
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: must match the `canvas url` in 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.

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...


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 |
Web01 | 2.8.180111.1 | Last Updated 21 Sep 2012
Copyright © CodeProject, 1999-2018
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