Topic-icon Facebook API error

Active Subscriptions:

None
10 years 1 month ago #58120 by festibl
Facebook API error was created by festibl
Hi, I have just installed JFB Connect into my site and have followed exactly the step by step guide to setup my Facebook application - however I get the following error when trying to progress through the JFB Connect Autotune:

Facebook API Error: Couldn't resolve host 'graph.facebook.com'
Facebook Application configuration could not be loaded. Please check your App ID and Secret Key

I have triple check my App ID and Secret Key, which are definitely correct.

Any ideas what the problem is? Thanks
The topic has been locked.
Support Specialist
10 years 1 month ago #58128 by alzander
Replied by alzander on topic Facebook API error

Facebook API Error: Couldn't resolve host 'graph.facebook.com'

That error means that your server is unable to find the IP address for 'graph.facebook.com' That could either be a DNS configuration problem on the server, a firewall that blocks outgoing connections, or something else. It's a server level issue though that you may need to contact your hosting provider to help resolve as PHP is simply unable to connect to Facebook for some reason.

I hope that helps explain,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 3 weeks ago #58209 by festibl
Replied by festibl on topic Facebook API error
Thank you Alex.

We have contacted our web host (Eleven2) who are asking if they need to enable any ports on the server for outgoing connection to make this work.
Specifically Eleven2 have said:
“The only restriction we have put forward is the server firewall which blocks all the unwanted ports. Could you please confirm whether we need to enable any ports for the seamless connection with EasySocial website?”

Are you able to let us know what ports or settings the server needs to edit to make this work for us please?

Really appreciate your help and thank you in advance.
The topic has been locked.
Support Specialist
10 years 3 weeks ago #58217 by alzander
Replied by alzander on topic Facebook API error
There's no 'special' ports to connect. It's just outgoing port 80 (http) and 443 (https).

If those are open, I'd recommend simply testing from the command line of your server to make a connection to graph.facebook.com to check if that returns properly. Your host should be able to help with that. After that, we could give you some PHP code to test from a file on your server and test that PHP is also able to make a connection.

I hope that helps explain a bit more,
Alex
The topic has been locked.