Forums

Facebook
[resolved] FB plugin doesn't see server SSL (4 posts)

  1. jkorchok
    Member
    Posted 9 months ago #

    Version 1.0.2 of the FB plugin is showing on all dashboard windows:
    "SSL must be enabled on your server for Facebook Social Publisher to work."
    SSL is enabled, using SNI through mod_ssl. This a virtual host server with a legit (not self-signed) certificate on the domain to which I'm linking. Even when I go to the dashboard using https://, it gives me the same error!
    I've checked the error, access and ssl logs, but there are no errors or other relevant messages. I'm thinking the FB developers didn't test on a server using SNI, because the SSL is fully functional on this domain.

    http://wordpress.org/extend/plugins/facebook/

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Contributor

    Posted 9 months ago #

    You're looking at the wrong type of "SSL" in question here.

    The Facebook plugin has to talk back to Facebook's own servers using SSL encryption. WordPress has built in support for talking HTTP and HTTPS, but in the case of talking HTTPS it is dependent on the server having the proper extensions to PHP to support this sort of thing.

    In other words, WordPress is acting as a web browser that needs to be able to talk SSL to FB's server.

    To do this, you need to modify the PHP configuration to have support for SSL. The easiest and most reliable way to do this is to activate the PHP "curl" module. How you do that is a bit complicated to explain, because it depends on your server in particular, but generally you would need to edit the PHP.INI file to turn on curl and possibly restart the web server.

    https://www.google.com/search?q=php+enable+curl+extension

  3. holmespc
    Member
    Posted 9 months ago #

    If you're on IIS, make sure PHP is running as a CGI application with curl enabled. That made the difference to me after much frustration.

  4. jkorchok
    Member
    Posted 9 months ago #

    Thanks for the help, adding curl did the trick. The error message for the plugin is misleading and unhelpful.

Reply

You must log in to post.

About this Plugin

About this Topic