Forty Weeks uses facebook a lot (check out their facebook page) and it appears that their site, which is built in Wordpress, is not feeding facebook pictures and descriptions to attach to links. Lets see what is needed to fix that…

Instead facebook is printing out a bunch of commented out javascript code as the description and no picture. Troubleshooting step 1 – remove that javscript.

OK step 1 complete and description gets pulled in now. The js had CDATA tags in it which may have been throwing facebook for a loop. Still no picture though. Step 2 comparing the sharpdot blog head tags to the fortyweeks blog head tags.

Well that seemed to do the trick. Facebook is now pulling in pictures that are relevant to the post. So the answer to the questions is YES BUT javascript can mess it up. After a little trial and error it seemed to come down to this line:

var morelink = $(‘<li><a href=”javascript:void(0);” class=”viewAllLink”>See all in this category</a></li>’);

Maybe there were just some hidden utf characters in there? Well color me surprised!