I am currently developing a websie and a I have include in the news section one like button for each news I post there. Generating the url for the like button is not a problem. Here is the code I use:
<iframe src=\"//www.facebook.com/plugins/like.php?href=".$url."&send=false&layout=button_count&width=450&show_faces=false&action=like&colorscheme=light&font&height=21\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:450px; height:21px;\" allowTransparency=\"true\"></iframe>
and this id the is the $url:
$url = 'http://www.example.com/news/displayNews.php?title='.$display['title'].'&news_id='.$display['news_id'];
everything seem to work propely. Then I go to Facebook and the link for the news is posted there, but here is where the problem is. When i check the link posted in facebook it only has the first variable “title”, the second one “news_id” is not there.
So that’s my question:
How can i pass the two variables???
Pd: I tried interchanging the order of the variables, tried using “&” instead of “&”. Searched the internet and didn’t find a solution.
try this:
use
& amp;not&or this because i see that youre using iframe:
this kind of link is prepare at developer facebook. if they prepare link like this, than it should work