Display comment widget for specific post instead of url

I integrate Facebook into an application that uses the page feed for its content.

I want users to be able to comment on the post and see the previous comments left on this post.

If possible, I would like to avoid creating my own implementation of the comment system (not to mention using oauth login for user comments), and just use the comment widget provided by Facebook (see here: http://developers.facebook.com / docs / reference / plugins / comments / )

Is it possible to use the aforementioned comment plugin in order not to refer to an arbitrary link, but to the actual (public) post on the Facebook page?

+3
source share
1 answer

No, it is not possible for the Comments plugin to connect to the on-facebook.com URL; it is only supported when it points to websites.

In order to achieve what you want (something on your site that can add comments to a post on facebook.com, right?), You need to get users to authorize the application you write that accepts their contribution and publishes it from their name back to Facebook via API

The actual implementation of this will vary depending on your exact requirements, but basically you want to:

Javascript SDK , , (. : http://www.facebook.com/155965101083460/posts/155965104416793)

FB.api(
    "/155965101083460_155965104416793/comments",
     {message: 'This is great, thanks!'},
     'POST'
 );
+5

All Articles