Experimental Project

This is a sandbox project, which contains experimental code for developer use only.

This project is part of the Drupal Social Initiative.

Note: Buttons are meant to like a certain existing content that has a valid public URL, so the buttons may not work until the site is online. This means that the module might not work properly in your local environment

Rather than having to manually copy/paste the Facebook buttons code for each piece of content you (or your users) create, this module will automatically add that code to the end of each chosen node type. Additionally, you are able to add a like, share, and send buttons with a given URL (static, e.g. your homepage or dynamic, e.g. the page you're currently visiting) through a block.

Benefits

  • Layout, size, position, weight, etc., are all completely customizable by site administrators.
  • Administrators can also control which content type(s) the Facebook buttons will or won't appear on, as well as which role(s) are allowed to view the buttons (regardless of whether or not the user is logged into Facebook at the time).
  • By default, the buttons will only appear on a node's "full" page view. This option is also customizable, however. The buttons can be shown up on teasers as well.
  • Users do not need to be granted any additional input format permissions to have the button added to their content.
  • For example, users with access to only Filtered HTML can still have the buttons added to their content.

Blocks

  • There is an optional block for like, share, and send buttons that can be set to appear on each page. The data-href for these buttons can be set for the current url the user is visiting or a static url (such as the site homepage or a Facebook fanpage).
  • Layout, size, position, weight, etc., are all completely customizable by site administrators.

Permissions

  • "Access Facebook buttons on nodes" permission should be set to roles which will be able to like the contents added directly to the nodes
  • You can customize the permissions if you choose to implement the buttons using blocks
Supporting organizations: 

Project Information