Your page has meta tags in the body instead of the head
Once in a while we will come across vague error message that lead us to no where and provide no further explanations. I've a chance of encountering one such error while debugging one of my website with Facebook Linter. The debug tool keeps telling me that my web page missing meta tags in the "Errors That Must Be Fixed" row with the error message :
Your page has meta tags in the body instead of the head. This may be because your HTML was malformed and they fell lower in the parse tree.Please fix this in order for the tags to be usable.
There is nothing wrong after looking at the source code behind the page, but found out a missing tag when comparing the source code in the Chrome source codes view versus the actual source codes.
Chrome took the liberty to generate a <head/>
tag on the fly just to make the page render properly but this caused problem to the Facebook URL parser. To fix the problem, just add the missing <head>
tag in to the actual source code and fixed the problem.
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+7.6k Golang : Load DSA public key from file example
+5.7k Golang : Function as an argument type example
+20.9k Golang : How to get time zone and load different time zone?
+35.5k Golang : Save image to PNG, JPEG or GIF format.
+12.6k Golang : Get terminal width and height example
+15.1k Golang : invalid character ',' looking for beginning of value
+5.5k Get website traffic ranking with Similar Web or Alexa
+5.5k Javascript : How to replace HTML inside <div>?
+9.5k Golang : Turn string or text file into slice example
+10.2k Golang : Resolve domain name to IP4 and IP6 addresses.
+7.1k Golang : Create zip/ePub file without compression(use Store algorithm)
+21.6k Golang : Join arrays or slices example