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
+10.2k Elastic Search : Return all records (higher than default 10)
+27.7k Golang : How to check if a date is within certain range?
+15.8k Golang : Logging with logrus
+18.1k Golang : Pipe output from one os.Exec(shell command) to another command
+11.3k Elastic Search : Mapping date format and sort by date
+12.2k Golang : Validate hostname
+4k How to check with curl if my website or the asset is gzipped ?
+7.7k Golang : How to protect your source code from client, hosting company or hacker?
+7k Golang : Accept any number of function arguments with three dots(...)
+3.6k PHP : Fix Call to undefined function curl_init() error
+3.4k Golang : Check if a word is countable or not