开发者

Facebook comments for each users

Ok when you use this code:

<div id="comments">
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#appId=YOUR_API_KEY&amp;xfbml=1"></script>
<fb:comments href="http://www.tiffanyjonesdesigns.com/facebook/countdown/visitor.php" num_posts="100" width="650">
</fb:co开发者_Python百科mments>
</div>

You have to enter your app ID, but what if I want the comments to be unique to the user who use my app? Is it possible to shows comments depending on the user ID?

Thank a lot for your help!


The way to do this is to use the href attribute in fb:comments. You can give each of your users a different, unique href so that the comments are saved separately (like comments on different articles of a news site). Be aware, however, that this isn't really "secure", and it won't prevent user A from looking at user B's comments once user A figures out what your URL scheme is and what user B's identifier/unique href is.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜