I’m considering implementing Facebook’s comments plugin on my site. The problem is that I need to know the pages on my site where a user has commented.
I have read Facebook’s documentation but I don’t find a proper permission to know this.
Is it possible to know which URLs a user has commented? In such case which permissions does my app need?
I know you have already accepted an answer, but i think this will help you.
You can first generate the code for Facebook Comments here.
For each page that you implement the comments plugin in, you’ll be providing a
hrefof the page the user is reading/visiting, as it is required by the plugin.You can use the Javascript SDK to listen to Facebook events, for comments specifically you have the
comment.createevent, which is fired every time a comment is made. This event passes aresponseobject to its callback function, which contains thehrefmentioned previously, and thecommentIDof the comment just generated. Hence you can easily track which page(url) a user has commented on.Example (see how we can listen to the comment.create event):