Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run facebook login in localhost

Tags:

facebook

I have website where i need to login from Facebook account. when I login from facebook, get an error as,

Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

From some other sites information, I have downloaded and installed pagekite

but still the error shows the same.

can anyone tell me how to rectify this. how to run and able to login to facebook.

Thanks in advance.

like image 508
user3040345 Avatar asked Dec 26 '13 05:12

user3040345


4 Answers

This one worked for me -

1.) In the developer.facebook.com, click on App.

2) Under settings in the "APP Domain" add localhost.

3) Click on "Add Platform" and choose "Website".

4) In the input box for site url add http://localhost:portNumber/ (whatever port number is applicable example http://localhost:9000/ for play framework)

5.) Save the changes, the Fb login should work on your localhost now.

like image 177
Shivam Verma Avatar answered Oct 12 '22 23:10

Shivam Verma


Here's how to get it working:

  1. Under App Domain, add localhost.
  2. For Add Platform choose Website and add localhost:port
  3. Create a test app and change your APP_ID in the local application.
like image 44
Matheus Veras Avatar answered Oct 13 '22 00:10

Matheus Veras


  1. Add App Domains

localhost

  1. Site URL

http://localhost/

like image 35
Vazgen Torosyan Avatar answered Oct 13 '22 00:10

Vazgen Torosyan


add this url in http://localhost in App Domains and http://localhost in siteurl in facebook app configuration

like image 30
Vijay Singh Avatar answered Oct 12 '22 23:10

Vijay Singh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!