Link share with facebook comments

Sandman picture Sandman · Apr 30, 2012 · Viewed 13.1k times · Source

So, on my blog I post about stuff, and then I share it on Facebook. Currently, I get more feedback on my posts on Facebook than I do on my blog. Is there any way to use Facebooks own comment function on my blog and have the it linked to the shared item on my wall?

I.e. I post "Hello World" on my blog, I share it to my facebook wall, which gets 20 comments. On my blog, I use the Facebook comment widget which will aloow anyone to comment on my "Hello World" post, but it will also show the 20 comments from my facebook wall post, and the other way around - if someone comments on my blog post, it is shown in my facebook wall as well (not as important, however).

Answer

phwd picture phwd · Oct 23, 2012

Facebook comments plugin allows users to post comments to their wall as long as they are at the top level.

Post to Facebook

If "Post to Facebook" is not selected, the post will not appear on the user's wall. If it is selected, any comment in reply shall appear on both the plugin and the user's post on Facebook.

Post on Wall

Post on Plugin

Now say you want every post to be stored on both, you will need to disable the option to deselect "Post to Facebook", which I think is equivalent to obscuring a plugin. So this isn't a nice option.

Option 2

Share a link to your wall, enable public commenting and grab the post ID. Then you can do an HTTP POST to POST_ID/comments endpoint with publish_stream permissions.

Problem here is that replies will be only under your post, merging any separate threads that can occur on the official Facebook Plugin. Also you need to ask the user for permission to add your app, adding an extra layer of friction.

Option 3

Build over the plugin using FB.Event.subscribe on a comment.create event. The response should give you the comment ID which you can use to grab the name of the user and the message. Then you post that message using your page or profile using the same method from option 2. Doesn't seem authentic as it is not the users posting themselves but it doesn't add any more friction.

See http://facebook.stackoverflow.com/questions/9873608/posting-comment-to-facebook-from-javascript to see how Option 3 can work