I added a link to how-to-find-facebook-id in the detailed setup instructions.
Hello,
I just installed the plug-in, created an app on facebook and filled in all the info. However, I got the following error when I tried to save the settings:
Facebook is not reachable from your server: Could not open handle for fopen() to https://graph.facebook.com/oauth/access_token?client_id=…
Any ideas of what could be blocking the connection?
Thanks for your help.
Sorry, I see there is a problem with the diagnosis script (name change).
Please run http://YOUR_BLOG.XY/wp-content/plugins/facebook-page-publish/diagnosis.php and post the results here.
I suppose your server does not allow outgoing http connections. Can you upgrade plugins / wordpress through the admin panel?
I can update plugins and wordpress through the admin and haven’t any similar connection problems. Are Qtranslate and Si-contact form causing a problem? I ran the diagnosis and here are the results:
Warning: Cannot modify header information – headers already sent by (output started at /var/www/XXXX/wp-content/plugins/facebook-page-publish/diagnosis.php:6) in /var/www/XXXXX/wp-content/plugins/qtranslate/qtranslate_core.php on line 71
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /var/www/XXXXX/wp-content/plugins/facebook-page-publish/diagnosis.php:6) in /var/www/XXXXX/wp-content/plugins/si-contact-form/si-contact-form.php on line 1367
Everything looks fine
[Code moderated as per the Forum Rules. Please use the pastebin]
Hi mioto,
thank you for your response. Does your server have SSL support?
If you are not sure, replace your current diagnosis.php with the following one and have a look at the SSL results: http://pastebin.com/jDVZ7s6y
It seems that my server has SSL support but there was a problem reported:
There seems to be a problem
Try enabling the compatibility settings of the plugin
WP_Error Object
(
[errors] => Array
(
[http_request_failed] => Array
(
[0] => Could not open handle for fopen() to https://…
Check if the SSL module is loaded
Everything looks fine
Any ideas?
Thank you again for your help.
Hi mioto,
it seems you are not the first wp user having these issues with https. Have a look at this post:
http://wordpress.stackexchange.com/questions/8813/why-do-i-get-wp-remote-get-could-not-handle-for-fopen
Perhaps installing the Core Control Plugin will enable you to detect reason for this behavior.
Hi mtschirs,
Thanks I’ll have a look into that. One more question:do I need to have curl installed on the server for this plugin to work? I’m pretty sure that it isn’t installed on my server.
No, curl is only one option. The plugin uses the default wordpress class for http communication wich does not depend on curl.
Hi again,
I contacted the server admin and there is not a certificate on the server. Is it possible to connect through http and not https?
I looked at the fpp_index.php as you suggested earlier, but I couldn’t find the define(“SSL_VERIFY”, true).
Hi mioto,
the define("SSL_VERIFY", true)
is no longer necessary since there is now a compatibility option Ignore SSL Certificate in your plugin settings. You can try to activate this option, but I somehow doubt that it will resolve your problem.
Unfortunately, the Facebook authorization can not be done without a https connection. Perhaps this alternative facebook plugin works for you: http://wordpress.org/extend/plugins/add-link-to-facebook/ – I checked the code, they are not relying on wordpress http functionality but implemented their own.
The other plugin seems to work. Thanks for your time.