So I have an iFrame app on a fan page, which includes the comments plugin. Is there a way I/any admin can receive a notification or email every time someone adds a comment?
So I have an iFrame app on a fan page, which includes the comments
Share
You can subscribe to
comment.createevent and send the notification to admin in any way you prefer, once comment is created. Facebook itself doesn’t provide such functionality.This may looks like this (I assume Facebook JavaScript SDK is already loaded on page before doing this, read about it in documentation on Loading, anyway if you’re using Social Comments Plugin it should be loaded already):
In your script located at
http(s?)://hostnamne/path/to/scriptyou can send a notification to admin, how to do it may vary on way you want it for example if you want to send an email you can use something like this php sample (aging this is just a flow sample, not real code you should use):If you need to track the deletion of comments too you can use
comment.removeevent with similar flow…