Given URL is not allowed by the Application configuration

Praveen picture Praveen · Aug 25, 2011 · Viewed 26.8k times · Source

I am trying to use the Facebook javascript sdk for my chrome extension. Since it is a chrome extension how do i integrate it with facebook? is it an app on facebook.com or a website?

Currently i have it as a website.

my site url on the settings is: http://localhost/Users/home/Documents/facebook/

i have also enabled web sharing on my mac.

do i need to set the site domain as well? what am i doing wrong here?

Answer

Mike Knoop picture Mike Knoop · Aug 25, 2011

Enter http://localhost/Users/home/Documents/facebook/ as your "Site Domain" on the developer app:

https://developers.facebook.com/apps/{api_key}/summary

Replace {api_key} with yours; or find a link at https://developers.facebook.com

Interestingly enough, Facebook lets you type anything into the domain so it can be an offline URL (such as localhost or a local port) and Facebook will redirect to it after authentication.