Publishing Drupal Comments To Facebook
Hi folks,
Firsly massive thanks to Dave Cohen for developing this. I'd have been lost without it recently. Every client I see wants FB integration at the moment.
I've got a large site set up where users can join via FB, post photos, video, comments etc. It's for a music artist and they want fans to link into Facebook. We'd like to be able to pull content from Facebook like photos eventually but I'm not sure how we go about that. At the moment I hard coded "like" buttons into the node template and it seems to work. We'd like to have an option to post comments from the Drupal site directly to FB though, and also pull them back out in the comment threads. I've seen modules that allow you to have FB comments but they then remove all the internal Drupal commenting.
I'm new to FB development and still finding my feet with Drupal to be honest, but I did write my first (and successful) 3rd party auth module recently. I also know a fair bit of PHP.
My question is this, are there any modules that integrate FB commenting with Drupal rather than replace standard comments? Also, how do I go about developing this? I presume I need to make a module of my own, or perhaps use functions in the theme. I need to work out how to use the API to send the comment contents to FB and we should probably have a checkbox in the comment form.
Does anyone have any ideas, or maybe even done this before? Many thanks. Sorry for the slightly vague questions.
Dan
- Forums:

Test
test
Post To Facebook
Check out the Post to Facebook module. It supports some two-way syncing. Posting content to facebook, and also posting comments from facebook back to Drupal.
Facebook Wall to Drupal Sync
I've been asked about true two-way integration, where comments posted to facebook are full-fledged comments in Drupal, and vice versa. I think facebook's APIs make such a thing possible, but not trivial.
If you're interested in working on a module to support this, ping me about it. I'd like to put together a team capable of building this.
Very interesting
I would like to see the sync function very much. Although i m quite a newbie, please let me know anything i could be useful
I got this sorted in the end
I got this sorted in the end by copying the sample code on Drupal.org for adding a checkbox to publish comments and nodes to Facebook. The very code used on this forum apparently. I copied into my own module and it seems to work great.
Please can you share your
Please can you share your module here?
Thanks
Srini
The code used here is now
The code used here is now included in Drupal for Facebook. See modules/fb/contrib/fb_example.module.