开发者

How can I integrate Facebook's social plugin comment with Rails?

开发者 https://www.devze.com 2023-02-22 05:41 出处:网络
I want the owner of a post to开发者_如何学Go receive an Email every time someone comments on his post. How do I get that message to Rails?

I want the owner of a post to开发者_如何学Go receive an Email every time someone comments on his post. How do I get that message to Rails?

Thanks in advance!


This is very similar to my answer on this SO question.

Instead of attaching to the "edge.create" event, attach to the "comment.create" event

FB.Event.subscribe('comment.create', function(response) {
  // Fire an AJAX call to send an email to your post's owner
});
0

精彩评论

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