ppp
ppp

Reputation: 2055

Configuring Facebook like button

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?

Upvotes: 0

Views: 223

Answers (1)

ceejayoz
ceejayoz

Reputation: 180177

Your description tag probably isn't working because it's og, not pg.

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.

Upvotes: 2

Related Questions