PHP application does not log in to the facebook app by localhost

Posted on

Coding Problem :

I’m developing a PHP application that returns the facebook user list of friends. Although I specified the domain and the site URL in the Facebbok app I created, I get the following message:


The URL you entered is not in the release list in the
  Client OAuth: Redirect failed because URl used failed
  is in the release list in the client’s OAuth settings.
  app. Make sure that the client and web OAuth login
  is active and add all domains of your application as URls
  valid for OAuth redirection.

I noticed that using the localhost address there was an error, so I modified the Xampp settings to change the default from localhost to I take this opportunity to ask: could I also return all the friends of my friends? Or would this be a privacy violation?


asked by anonymous 13.01.2016 / 16:28

Answer :

Answer 1 :

It’s quite simple to solve this.

Open /etc/hosts (unix) or C:WINDOWSsystem32driversetchosts .

Assuming your domain is, add this line:

Then in your test, open in your browser that should work.

Of course you could still put the application url on your facebook application settings for testing.


Answer 2 :

To resolve this issue, you must delete all domain information.



Answer 3 :

Answer 4 :

Answer 5 :

Answer 6 :

Answer 7 :

Answer 8 :

Answer 9 :

Leave a Reply

Your email address will not be published.