Why is Facebook not reading OG tags?

I have all open graph tags rendered properly in my web page even though Facebook wasn’t reading those OG tags.  I used Facebook debugger tool to see what Facebook sees exactly when it scrapes my web page.  I got the message saying that HTML is malformed and thus Facebook pulls the information that it needs from page using it’s own algorithm even though OG tags are in page.  Here is the warning message I see when using Facebook debugger tool.

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.

I have looked into HTML to figure out what exactly malformed HTML causing this problem.  I had <noscript> in <head> tag which is invalid in HTML 4 that was the culprit.  I did move noscript element within body tag and it worked fine.  Good thing is that you can have noscript element in Head tag if you are using HTML 5 so Facebook should have no issue if you are using HTML 5.

Hope this helps.

Posted in Microsoft Technology Tagged with: ,

Ads

OutbackDirect.co.uk is a trading site of World of Power.co.uk Limited. Outback Direct is the official Outback Consumer Warranty, Parts and Accessory Partners for the UK. We currently hold in stock 1000’s of parts and accessories for current and older Outback barbecues. We endeavour to ensure rapid and secure product delivery the length and breadth of mainland United Kingdom, this factor coupled with our excellent customer service has led to the market position we currently enjoy.
outback barbecue
omega 300 gas barbecue
Omega 250 Gas Hooded BBQ
Blog
Blog
------------------------------------------------------------ Silver Sky Imports is a unique online marketplace that offers unique handicrafts from Tibet and Nepal. Launched in 2003, Silver Sky Imports is currently the largest supplier of handmade items from the Himalayas. We specialize in the largest variety of Tibetan Singing Bowls and Crystal Singing Bowls online and include individual sound samples, pictures and descriptions for each bowl. Some of our other products include Tibetan Prayer Flags, Tingshas, Bell and Dorje, Incense, Felted Wool Handbags, Wood Masks, Prayer Wheels, Gongs, Bronze Statues, and Tibetan Meditation Rugs. monks
Blog
------------------------------------------------------------ Airpush, a mobile ad network that is only two years old, has quickly grown to one with over 5,000 advertisers. One thing they've heard from that sea of advertisers over the past 12 months, and especially over the past six, is that real-time bidding (RTB) capabilities are now a must. To answer those needs, the company today unveiled AirDSP, a platform meant to easily connect advertisers to RTB exchanges. Read more: Mobile RTB
Blog
Blog
------------------------------------------------------------ Danish site about electronic cigarettes E Cigarette, Electronic Cigarette and E Cigarettes e cigaret
------------------------------------------------------------ DrugRisks.com drugrisk​ recall ​informat​ion​ drugrisk​ yaz​
------------------------------------------------------------