facebookwordpressfacebook-opengraph

Bad HTTP Response code; Facebook likes don't post to facebook


I've created post-specific like buttons on my wordpress website. They appear to work on my site and record likers etc, but nothing posts to facebook. I've tried several wordpress plugins. and all gave the same result. Twitter is working just fine. Upon debugging in the facebook open graph, I get "Bad Response Code URL returned a bad HTTP response code." (more info in the debug link below). What am I missing? Thanks in advance!

The posts can be viewed at http://www.nebulusentertainment.com/news.

You can check out my attempt at debugging here:

https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.nebulusentertainment.com%2Fjust-around-the-corner


Solution

  • Despite the page URL loading in the browser, they are loading with a status code of 500 - Internal Server Error; which Facebook will reject. Since you are using PHP, the fastest solution may be to turn error reporting on, and display errors on. Or take a look at your logs to see what's causing the 500 error.

    You can see that your page quits outputting code are about line 328, which looks like it may be an error in the wordpress theme files somewhere (maybe single.php?).

    Hope this helps.