Question

If you follow this links you will see that there is a paragraph-tag that should not be there in line 3

This is the actual code that "causes" this:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />

I do not get why there would be a paragraph-Tag cancelling the element and making FB believe that meta-tags are in the body instead... do you?

Was it helpful?

Solution

https://developers.facebook.com/tools/debug/

I used the Facebook Open Graph Debugger to solve the issue. On the very bottom there is a link called

Scraped URL See exactly what our scraper sees for your URL

This shows exactly what Facebook catches as code and there was a print of a paragraph-tag from one of the libraries I have been using. I can only recommend to debug it this way because I wasted a lot of time not doing so (because I did not see the link at the bottom of the page).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top