I am trying to find how to control the information that facebook posts on a visitors wall when they “like” something on my page.
I use the XFBML version of the button and php to generate the button URLs etc. One instance of the button looks like this:
<div id="fb4" class="fb-like" data-href="<?php echo $url; ?>" data-send="false"
data-layout="button_count" data-width="450" data-show-faces="true"
data-font="trebuchet ms"></div>"
And $url is the page’s URL, http://www.nightscene.gr/index.php?page=news&postid=11.
How can I define the text and image posted on user’s wall when they hit like?
<meta name="description" content="text_here"/>
<meta property="og:description" content="text_here"/>
Don’t seem to be working though that’s what the like button documentation says.
Same with
<meta property="og:image" content="path_to_image_here" />
Any help?
Your description tag probably isn’t working because it’s
og, notpg.Use the Facebook Debugger to clear Facebook’s cache and figure out why something isn’t being picked up. It’ll usually provide useful info on what you’re missing.