当有人喜欢或通过Facebook Social Plugin发表评论时如何获得通知 [英] How to get notification when someone likes or comments via Facebook Social Plugin

查看:133
本文介绍了当有人喜欢或通过Facebook Social Plugin发表评论时如何获得通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将Facebook Social Plugin集成到我的Joomla网站中. 我有一个喜欢"按钮和一个评论"框.

I have integrated the Facebook Social Plugin into my Joomla Website. 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?

推荐答案

您是否正在使用XFBML或iframe来实现赞"按钮? I如果您使用的是XFBML,则每当事件通过Facebook发生时,您都可以为Facebook提供回调函数.当有人喜欢"您的网页时,Facebook会生成一个名为"edge.create"的事件,如

Are you using XFBML or an iframe to implement the Like button? I If you're using XFBML, you can give Facebook a callback function whenever an event happens through Facebook. When someone 'likes' your webpage, Facebook generates an event called 'edge.create', as listed here.

您可以通过 http://www.facebook.com/insights 从用户那里获取一些信息.

You can get some information from your users via http://www.facebook.com/insights.

类似地,当有人在您的页面上发表评论时,会触发"comments.add"事件.

Similarly, when someone comments on your page, a 'comments.add' event is fired.

在Facebook自己的文档中,有关于Facebook赞"按钮的更多信息.

There's more information about the Facebook 'like' button in Facebook's own documentation.

从Facebook文档中发现的这一段来看:

Judging from this passage found in Facebook's documentation :

XFBML版本具有更多功能,但需要使用JavaScript SDK. XFBML根据是否有要显示的个人资料图片动态调整其高度,使您能够(通过Javascript库)收听类似事件,以便您实时了解用户单击赞"按钮,它始终使用户能够在赞中添加可选注释.

The XFBML version is more versatile, but requires use of the 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.

似乎并非如此.

这篇关于当有人喜欢或通过Facebook Social Plugin发表评论时如何获得通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆