I have a webpage with the following opengraph metatags:
<meta property="fb:admins" content="myid" />
<meta property="og:title" content="myurl.com" />
<meta property="og:url" content="http://www.myurl.com/" />
<meta property="og:description" content="My description" />
<meta property="og:type" content="website" />
<meta property="og:image" content="http://www.myurl.com/images/image.jpg"/>
Im trying to get a Facebook Like button for every post using this code:
echo '<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.myurl.com%2Fnews.php%3Fid%3D'.$postid.'&send=false&layout=button_count&width=100&show_faces=false&action=like&colorscheme=light&font=trebuchet+ms&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe>';
Obviously every like button use a different $postid value, but when i go to my webpage and like the post number 1, i reload the page and the post 3 and 4 have a new like too. I unlike, and it's the same. Really weird and annoying. It's like the posts where connected without having the same URL. Do you know how can i fix this?