Click here to Skip to main content
15,888,106 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
I've used the form from facebook developers like button official page to create code to get a "like" button, but then I press the like button it works for a second but then the "like effect" disappears.

I have a test page here:

<a href="http://apkitchen.voku-online.de/teste.php">http://apkitchen.voku-online.de/teste.php</a>[<a href="http://apkitchen.voku-online.de/teste.php" target="_blank" title="New Window">^</a>]

and the iframe it's here:

<pre><iframe src="http://www.facebook.com/plugins/like.php?app_id=146289078779327&amp;href=http%3A%2F%2Fapkitchen.voku-online.de/teste.php.vu%2F&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>


I've absolutely nothing more on that page, but even so that button don't works.

What could be the problem?

I tried on Chrome 12 And Firefox 4.01, and don't work in neither.

EDIT: I noticed that sometimes it works, but when refreshing the page it's not "liked" anymore and then it does not work.

P.S: I deleted the previous thread because I thought I solved the problem, but don't :(
Posted
Updated 12-Jul-11 5:49am
v2

1 solution

The clue is in:
I noticed that sometimes it works, but when refreshing the page it's not "liked" anymore and then it does not work.

Are you maintaining the state correctly when you refresh the page?
 
Share this answer
 
Comments
Maxdd 7 12-Jul-11 13:02pm    
You are completely right, solved using meta tags.

<meta property="og:title" content="Android Apps" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://apkitchen.voku-online.de/teste.php" />
<meta property="og:image" content="" />
<meta property="og:site_name" content="apKitchen" />
<meta property="fb:admins" content="100000473064054" />

Thanks for the tip!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900