Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook : Given URL is not allowed by the Application configuration

Tags:

facebook

my configurationa

What is wrong here? If a user clicks on the login button he is redirected to http://www.facebook.com/plugins/login.php?action=like&api_key=211295588901671&channel=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df207fe8ecd56db2%26origin%3Dhttp%253A%252F%252F188.24.5.134%252Ff3dedfc22a9c9ac%26relation%3Dparent.parent%26transport%3Dflash&locale=en_US&login_text=&max_rows=1&sdk=joey&show_faces=true&width=200 which gets me to the facebook error Given URL is not allowed by the Application configuration.

like image 780
Ryan Avatar asked Jan 20 '23 14:01

Ryan


2 Answers

I believe it's because the URL the request is made from is not under your Site URL.

Look at your "origin" parameter in the URL you've submitted.

You can only make calls from the location you've defined as your Site URL.

like image 60
Rotem Tamir Avatar answered May 12 '23 22:05

Rotem Tamir


I have used login url in following format

https://www.facebook.com/dialog/oauth? client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&scope=email,read_stream

as per documented in http://developers.facebook.com/docs/authentication/ and it works. I get back request on my web page url provided in application config as mentioned. http://YOUR_URL?code=A_CODE_GENERATED_BY_SERVER

like image 29
Dileep Avatar answered May 12 '23 21:05

Dileep