Launch facebook login in localhost

I have a website where I need to log in with my Facebook account. when i log in with facebook i get an error like

This URL is not allowed by application configuration. One or more of the specified URLs is not allowed by the application settings. It must match the website URL or canvas URL, or the domain must be a subdomain of one of the application domains.

From some other information sites, I downloaded and installed pagekite

but still the error shows the same thing.

can someone tell me how to fix this. how to start and log in to facebook.

Thanks in advance.

+6
source share
4 answers

It worked for me -

1.) In developer.facebook.com, click Application.

2) At settings in "APP Domain" add localhost.

3) Click "Add Platform" and select "Website."

4) In the input field for the site URL add http://localhost:portNumber/ (whatever port number is applicable http://localhost:9000/ for the gaming platform)

5.) Save the changes, now the Fb input should work on your local host.

+12
source

add this url to http://localhost in application domains and http://localhost to siteurl in facebook application configuration

+1
source

Here's how to make it work:

  • In the application domain, add localhost .
  • For Add platform, select "Website" and add localhost:port
  • Create a test application and change the APP_ID in the local application.
+1
source
  • Add Application Domains

local

  1. Site url

http: // localhost /

0
source

All Articles