- December 17, 2016
- Posted by: thestateofart
- Category: Development
After installing facebook comments on my site and testing, I got the error:
Object missing a required value
Specifically when I checked the box “Also post on facebook”. There was no documentation on this but I figured that it had something to do with the lack of OG markup, which helps the Facebook display content on their site correctly. I added the meta tags below dynamically through javascript and PHP and the error went away. It still didn’t post on my wall though…
<meta property="og:url" content="http://www.alltherex.com" /> <meta property="og:type" content="article" /> <meta property="og:title" content="The Incredibles" /> <meta property="og:description" content="One of the greatest films of all time!" /> <meta property="og:image" content="http://alltherex.com/admin/uploads/movies/B00005JN4W.jpg" />
I couldn’t quite solve it, but maybe this will help someone else do it. I spent quite a bit of time in front of the pc trying to work it out as well. Sometimes I worry about that, since it is so well known sitting down for long stretches of time can be so detrimental to one’s health. I try to do what I can by watching what I eat and exercising whenever possible. I even take a natural health supplement that has been working great for me and I highly recommend it. If you would like to try it out for yourself you can check here for more information.