Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid redirect_uri: Given URL is not allowed by the Application configuration

Tags:

facebook

My Code: https://graph.facebook.com/oauth/authorize?client_id=174375686054021&redirect_uri=http://centshark.com/app/fblogin.aspx&scope=offline_access,publish_stream

Website with Facebook Login:http://centshark.com

Eror: {"error":{"message":"Invalid redirect_uri: Given URL is not allowed by the Application configuration.","type":"OAuthException","code":191}}

like image 543
svincoll4 Avatar asked Dec 08 '22 15:12

svincoll4


2 Answers

in the facebook App Page, goto the basic tab. find "Website with Facebook Login" Option.

you will find Site URL: input there put the full URL ( for example http://Mywebsite.com/MyLogin.aspx ). this is the URL you can use with the call like If the APP ID is 123456789

https://graph.facebook.com/oauth/authorize?client_id=123456789&redirect_uri=http://Mywebsite/MyLogin.aspx&scope=publish_actions

like image 145
Partha Avatar answered May 18 '23 01:05

Partha


I was able to fix the problem under BASIC Tab by 'Add Platform' and 'Website' using the standard http:// site URL.

and

Going to ADVANCED Tab and under 'Security' Section placing the Site URL in the 'Valid OAuth redirect URIs' field.

like image 22
Abel TheControlsFreak Avatar answered May 18 '23 01:05

Abel TheControlsFreak