简体   繁体   English

Facebook API。 通过社交插件评论通知

[英]Facebook API. Notification via social plugin comments

I have a page with a comments social plugin , I would like to know if it's possible to notify users who have already commented on the form. 我有一个带有评论社交插件的页面,我想知道是否可以通知已经在表单上发表评论的用户。

I can subscribe to the comment.create function, but how do I send notifications? 我可以订阅comment.create函数,但是如何发送通知?

I know actual notifications are now impossible, but is there another way? 我知道实际的通知现在是不可能的,但还有另外一种方法吗? (Sending a message from the user perhaps?). (也许是从用户那里发送消息?)。 With the format of my page, they will want to know when someone has posted. 使用我的页面格式,他们会想知道有人发布的时间。

I haven't tried that, it's just an idea. 我没有尝试过,这只是一个想法。

https://developers.facebook.com/docs/reference/plugins/comments/ - look at the section describing way of getting comments via Graph API. https://developers.facebook.com/docs/reference/plugins/comments/ - 查看描述通过Graph API获取评论方式的部分。

E-mail way: 电子邮件方式:
You can ask each user who logs into your site to allow you to get his e-mail address. 您可以询问登录您网站的每个用户是否允许您获取其电子邮件地址。 Then, you would subscribe to this event, list users who commented an article and send them an e-mail. 然后,您将订阅此活动,列出评论文章的用户并向他们发送电子邮件。

Message way: 消息方式:
You need a Facebook page for your site. 您需要为您的网站设置一个Facebook页面。 Then you would receive a token for this page ( manage_pages permission), get publish_stream permission in behalf of this page and publish message to streams of users who commented. 然后,您将收到此页面的令牌( manage_pages权限),代表此页面获取publish_stream权限,并将消息发布给评论的用户流。

It may be also possible to send user a message on behalf of a page using Graph API, however I haven't seen anything like that in docs 也可以使用Graph API代表页面向用户发送消息,但我在docs中没有看到类似的内容

Search for WordPress Plugin called Ultimate Facebook Comments Email Notify . 搜索名为Ultimate Facebook Comments Email Notify的 WordPress插件。 I hope it will solve your problem...and you can also take some idea from his script which he is using in the plugin....hope this helps :) 我希望它能解决你的问题......你也可以从他在插件中使用的脚本中获取一些想法....希望这有助于:)

This is not allowed by facebook, the attempt will result something like this: 这是Facebook不允许的,尝试将导致这样的事情:

{
  "error": {
    "message": "An unknown error has occurred.",
    "type": "OAuthException"
  }
}

This is because the social plugins do not "live" inside facebook, they are being distributed to 3rd party sites, and to prevent bad content posted from bots/apps to display in 3rd party websites, facebook has disabled this option. 这是因为社交插件不会在Facebook内“生活”,它们被分发到第三方网站,并且为了防止从机器人/应用程序发布的不良内容显示在第三方网站中,Facebook已禁用此选项。

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

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