Search code examples
facebookfacebook-graph-apifacebook-likehttpresponse

404 error on https://developers.facebook.com/tools/debug/


I am trying to add Facebook like/share to http://labs.jstor.org/shakespeare/macbeth. I’ve tried several different ways of adding it, including the HTML5 and XFBML options from developers.facebook.com and from AddThis.

I made sure to include the og: title, type, url, and image meta tags as shown:

The open graph debugger tool at developers.facebook.com/tools/debug/ returns a 404. I checked in Firebug to make sure there wasn't a 404 header coming across. When clicked, the like/share buttons show the page as "Page Not Found"

What is going on here?


Solution

  • Check your server code and make sure you're returning the correct meta tags to Facebook - if you have special user agent handling, you might be returning the correct tags to regular browsers but the wrong tags to Facebook, which can make debugging more difficult