facebooksslfacebook-graph-apihttps

Facebook Debugger Not Scraping Page With SSL Certificate


I recently installed a SSL certificate on my domain and now Facebook is unable to scrape my webpages for open graph content.

When I go to https://developers.facebook.com/tools/debug/og/object/ and scrape the site: https://genesispetaluma.com, I get an error "Error parsing input URL, no data was cached, or no data was scraped." When I click to see what the scraper sees, I get a message "document returned no data" at this link: https://developers.facebook.com/tools/debug/og/echo?q=https%3A%2F%2Fgenesispetaluma.com%2F. This worked perfectly before the installation of the SSL Certificate. Because I do not have a wildcard SSL certificate, I tried to scrape a site on my subdomain: http://blog.genesispetaluma.com and this passes and delivers the following information: https://developers.facebook.com/tools/debug/og/object?q=blog.genesispetaluma.com.

I have verified with the server logs that Facebook is making a request to my server: 69.171.237.115 - - [22/Aug/2014:09:44:13 -0700] "GET / HTTP/1.1" 206 6512 "-" "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)"

I ran a test with www.ssllabs.com and it appears that the certificate is installed correctly, with all of the intermediate certificates installed as well. My hosting company has verified that the certificate is installed correctly as well.

Any ideas why this is not working or how I can troubleshoot this? I posted this issue in the Facebook Developer forum and they have not been able to figure it out.


Solution

  • The Facebook team was able to determine the source of the problem. Facebook will not scrape the page unless the og:url has the protocol as well.

    For example, this does not work:

    meta property="og:url" content="//genesispetaluma.com/"
    

    But this does:

    meta property="og:url" content="**https:**//genesispetaluma.com/"
    

    They should to clarify the error in the debugger so people know what's wrong.