【发布时间】:2012-04-30 14:18:14
【问题描述】:
我正在尝试做类似的事情:
我有带有可变链接的 php 页面,例如:some.php?id=1
我想在这个页面集成facebook评论插件,但是每个ID的内容应该是不同的。
如何在这个插件中提及变量链接
<div class="fb-comments" data-href='http://comesite.com/some.php' data-num-posts='5' data-width='500'></div>
我试过这个:
$id=$_GET['id'];
<div class="fb-comments" data-href='http://comesite.com/some.php?id='".$id."' data-num-posts='5' data-width='500'></div>
不工作..当我评论 some.php?id=1 也出现在 some.php?id=2 中
有什么建议吗??提前致谢!
【问题讨论】:
标签: facebook variables plugins comments social