Sharing nodes on Facebook

Sharing nodes on Facebook

Currently I’m using a couple of community based websites and am looking to add into the node creation flow in Drupal an option to share a node you have just created on Facebook. The process would be

Create node > Node (add) form
Submit
Share to Facebook (popup window)
View node

I’ve looked into downloading and writing modules for this but I don’t think it’s really necessary. The share widget module is good for offering sharing of nodes to multiple social media sites, so I’ll leave that on the node.tpl.php page so people can share nodes they read, but I want to add it as an option into the flow of creating content.

Facebook offers this page:

http://www.facebook.com/share.php?u=http://www.creativebirmingham.com

Where the u variable is the page you’re sharing. So now I just need to add a user journey into the node creation flow to include a popup link to that page (maybe in a thickbox window) once the node if created. Should not take too long, I hope.

picture-4

About the Author

Follow me on Twitter @karlbinder