1

I m new to use of facebook api after some googling i found facebook api from this link: https://github.com/facebook/facebook-php-sdk

after download this package i try to execute example code from this package but it returns an error like: Fatal error: Uncaught CurlException: 6: Could not resolve host: graph.facebook.com; Host not found thrown in D:\xampp\htdocs\testing\phpdemo\fb\src\base_facebook.php on line 994

to solve this problem i try too much googling but i doesnt get positive result from there.

If anybody know what kind of possibilities for this problem then please help.

Priyank
  • 53
  • 2
  • 10
  • Do you have any firewalls? The problem is not about configuration is just CURL can't do requests to graph.facebook.com and possible any website. Try disable any firewalls that may be blocking your CURL requests – Fabio Antunes Oct 10 '13 at 14:31

2 Answers2

1

From my experience you can't use facebook APi local, however they have a free host provider,Heroku, try it. Also don't forget to replace YOUR_APP_ID and YOUR_APP_SECRET with your app Data.

Rotari Radu
  • 645
  • 6
  • 13
  • 1
    Yes you can, here http://stackoverflow.com/questions/16294630/what-am-i-doing-wrong-in-localhost-facebook-app-development and here http://stackoverflow.com/questions/4532721/facebook-development-in-localhost/7493806#7493806 – Fabio Antunes Oct 10 '13 at 14:39
1

here is may be two posibilities like: 1) Do you have any firewalls? The problem is not about configuration is just CURL can't do requests to graph.facebook.com and possible any website. Try disable any firewalls that may be blocking your CURL requests

2) From my experience you can't use facebook APi local, however they have a free host provider,Heroku, try it. Also don't forget to replace YOUR_APP_ID and YOUR_APP_SECRET with your app Data.

You can get help here,https://stackoverflow.com/questions/16294630

Community
  • 1
  • 1
Priyank
  • 224
  • 2
  • 14