简体   繁体   English

如何收到通过 Facebook 评论社交插件发布的评论的通知

[英]How to be notified of comments posted via the Facebook Comments Social Plugin

I recently implemented the Facebook social plugin for comments on my blog.我最近实现了 Facebook 社交插件,用于在我的博客上发表评论。 I assumed, incorrectly, that I would get a Facebook notification when someone posts a comment to one of my articles.我错误地认为,当有人对我的一篇文章发表评论时,我会收到 Facebook 通知。 I was wondering if that is a possibility.我想知道这是否有可能。

I have read references to the use of a event.subscribe function in the javascript SDK, but I wasn't really interested in creating a javascript-based notification dingus but would rather just see the little badge in my Facebook notification window. I have read references to the use of a event.subscribe function in the javascript SDK, but I wasn't really interested in creating a javascript-based notification dingus but would rather just see the little badge in my Facebook notification window.

I'd love any insight on how others have addressed this.我很想知道其他人是如何解决这个问题的。

Thanks in advance!提前致谢!

Just add yourself as moderator under Facebook developers comments tool.只需在 Facebook 开发人员评论工具下添加自己为版主即可。 That's it.而已。 You'll start getting notifications of any comments on any of your blog posts.您将开始收到有关您的任何博客文章的任何评论的通知。

facebook 通知您博客帖子的评论

Shorter way:更短的方式:

  1. Open this url (am assuming you are signed into Facebook and is administrator of your Facebook app):打开此 url(假设您已登录 Facebook 并且是您的 Facebook 应用程序的管理员):
    https://developers.facebook.com/tools/comments/ https://developers.facebook.com/tools/comments/
  2. Click on settings点击设置
  3. Add yourself (or any of your friend/employee) as moderator.将您自己(或您的任何朋友/员工)添加为主持人。

Lengthier way:更长的方式:

  • Click on 'Moderation Tool' on any of your blogpost's facebook comments.在您的任何博文的 facebook 评论上单击“审核工具”。
  • You must be on Facebook developers page now.您现在必须在 Facebook 开发人员页面上。 On this page, you must be seeing something like 'your app name' > 'the blogpost title' (from where you clicked moderation tool).在此页面上,您一定会看到类似“您的应用名称”>“博客文章标题”的内容(从您单击审核工具的位置)。 Here click on your app name.在这里单击您的应用名称。
  • On this new page, click on settings.在这个新页面上,单击设置。
  • You must be seeing a modal now.您现在必须看到一个模态。 Add yourself (or any of your friend) as moderator here.在此处添加您自己(或您的任何朋友)为版主。

You must be getting notifications now.您现在一定会收到通知。

For those who have been struggling to find a way to get notified when someone sends a comment on your page, here's a (sort of) solution.对于那些一直在努力寻找在有人在您的页面上发送评论时获得通知的方法的人,这里有一个(某种)解决方案。

  1. Assuming you've created an app for your website, add the following meta tag to your <head> : <meta property="fb:app_id" content="YOUR_APP_ID_HERE" />假设您已经为您的网站创建了一个应用程序,请将以下元标记添加到您的<head><meta property="fb:app_id" content="YOUR_APP_ID_HERE" />

  2. Then in Facebook Moderation Tool choose your app and click on Settings in top right corner.然后在Facebook 审核工具中选择您的应用程序并单击右上角的设置 In settings, choose Moderation rules tab and at the bottom, you'll find an option Closed under Moderation heading.在设置中,选择审核规则选项卡,然后在底部,您会在审核标题下找到一个关闭选项。 Select this option. Select 这个选项。 By setting Closed option you basically have to approve all comments that are added to your site, but right now that's the only option how to get notified right in your Facebook without setting up custom listeners on comment.create event.通过设置Closed选项,您基本上必须批准添加到您网站的所有评论,但现在这是唯一的选择如何在您的 Facebook 中获得通知,而无需在 comment.create 事件上设置自定义侦听器。 That's also why this solution is sort of solution.这也是为什么这个解决方案是某种解决方案的原因。

  3. Also don't forget to add yourself as a moderator as Saurabh's answer suggests (otherwise you won't get any notification in your facebook).另外,不要忘记按照 Saurabh 的回答建议将自己添加为版主(否则您将不会在 Facebook 中收到任何通知)。

Unfortunately, even on the doncaprio blog, the owner has noted that不幸的是,即使在 doncaprio 博客上,所有者也注意到

"For some reasons, notifications stopped working for some months now. I'm yet to find a fix for this... seems like an issue with fb or something." “由于某些原因,通知停止工作几个月了。我还没有找到解决这个问题的方法……似乎是 fb 或其他什么的问题。”

I've come to the conclusion that I have to live with not having comment notifications.我得出的结论是,我必须忍受没有评论通知。

Easiest way is to just check the Facebook moderation tool .最简单的方法是检查Facebook 审核工具 You could build some kind of notification system that pulls comments using the graph api.您可以使用图表 api 构建某种通知系统来提取评论。 I haven't seen any alert/notification system yet that somebody has else built but it would be pretty easy.我还没有看到其他人建造的任何警报/通知系统,但这很容易。

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

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