简体   繁体   English

当有人喜欢或通过Facebook Social Plugin发表评论时如何获得通知

[英]How to get notification when someone likes or comments via Facebook Social Plugin

I have integrated the Facebook Social Plugin into my Joomla Website. 我已经将Facebook Social Plugin集成到我的Joomla网站中。 I have a Like button and a Comment box. 我有一个“喜欢”按钮和一个“评论”框。

How can I get notified when someones Likes the page? 有人喜欢该页面时如何通知我?
How do I view a list of users who Liked the page? 如何查看顶页面的用户列表?
How do I get notified when someone comments on the page? 当有人在页面上发表评论时如何通知我?

Are you using XFBML or an iframe to implement the Like button? 您是使用XFBML还是iframe来实现“赞”按钮? I If you're using XFBML, you can give Facebook a callback function whenever an event happens through Facebook. I如果您使用的是XFBML,则可以在Facebook发生事件时为Facebook提供回调函数。 When someone 'likes' your webpage, Facebook generates an event called 'edge.create', as listed here . 当一个人“喜欢”你的网页,Facebook的会生成一个名为“edge.create”事件,由于上市这里

You can get some information from your users via http://www.facebook.com/insights . 您可以通过http://www.facebook.com/insights从用户那里获得一些信息。

Similarly, when someone comments on your page, a 'comments.add' event is fired. 同样,当有人在您的页面上发表评论时,会触发“ comments.add”事件。

There's more information about the Facebook 'like' button in Facebook's own documentation . 在Facebook自己的文档中有关于Facebook“赞”按钮的更多信息。

Edit: 编辑:

Judging from this passage found in Facebook's documentation : 从Facebook文档中发现的这一段来看:

The XFBML version is more versatile, but requires use of the JavaScript SDK. XFBML版本具有更多功能,但是需要使用JavaScript SDK。 The XFBML dynamically re-sizes its height according to whether there are profile pictures to display, gives you the ability (through the Javascript library) to listen for like events so that you know in real time when a user clicks the Like button, and it always gives the user the ability to add an optional comment to the like. XFBML根据是否有要显示的个人资料图片动态调整其高度,使您能够(通过Javascript库) 侦听类似事件,以便您在用户单击“赞”按钮时实时知道,并且总是使用户能够向类似内容添加可选注释。

It doesn't seem to be so. 似乎并非如此。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM