开发者

Facebook 'like button' on page with dynamic content(ajax)

Usually the facebook 'like but开发者_开发知识库ton' deactivates once a user clicks on it once. However, let's say I have a page that loads dynamic content (e.g. a picture viewer), and I want the user to be able to like one images (images my be accessed through their own link via generated url), but then move on to like another one as well, without having the button deactivating after being clicked once. Is this possible?

Thanks.


Using the JS SDK you should destroy the existing button and create another one, but the like button links to a specific URL so you'd have to make sure you were liking a different URL for each image.

Why is my Facebook Like button broken? talks about making dynamic like buttons.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜