Facebook Autopost: Rules integration

Obsolete

If you are interested in maintaining this module, please let me know. In the mean time, this module should not be used in production.

If you are still interested in making this module work again then see #2909088: Looking for sponsors to fix the breaks from Facebook's side.

Facebook autopost allows you to configure your site to automatically post to a user's Timeline (configuring the privacy) or to a Facebook Page without human intervention. No tricky configuration needed.

Watch video demonstration here. There is also a Spanish version aquí.

Video Screenshot

Examples of use cases

  • Create a Facebook publication when a new content has been aded.
  • Share a video link (stored in a field) after flagging some content.
  • Let user's announce on their Facebook profile they have just bought a product (and link to it).
  • Welcome new Drupal users on your site's Facebook fan page.
  • Create automated Facebook Offers when adding a new product.

Description

This module handles the case where the user has not authorized (yet) your Facebook application to post in their behalf. This is done transparently for the user.

You can use the developer API or use Rules to do so and don't write a single line of code.

The module does 3 basic things:

  1. Allows you to grant access to write to your (or admin’s ones) Facebook Fan pages.
    • Allows you to select the pages you will make available to post to.
  2. Allows you to publish to the page (or Facebook wall) with a comprehensive Developer API. See the example.
  3. To publish in the user's profile just use Rules or a code like this.

Facebook permissions

This module comes with a submodule called Facebook Permissions. This will allow you to select the permissions needed for your Facebook App to work from a comprehensive UI instead of a long confusing list of permission names.
FB Permissions

Integrations

Integrates with Entity API and Rules.

  1. This will allow you to publish in complex contexts without a single line of code.
  2. This will allow you to integrate your saved Facebook Publications with Views.
  3. This will allow you to keep the returned Facebook publication ID to manage those publications remotely (delete or edit those publications from Drupal).

Drush

If you are using 7.x-1.x-dev you can now download the Facebook PHP SDK library using drush:
drush download-facebook-php-sdk or drush dl-fbsdk.

Quick installation:
drush en -y fb_autopost fb_autopost_entity fb_autopost_types && drush download-facebook-php-sdk

Dependencies

You will need to download the Official Facebook PHP SKD to a valid library path. To do so just follow the instructions in the admin/reports/status page after enabling the module or use drush to download it (you will also need to enable the module first).

If you are using the Facebook Autopost Entity module:

If you are using the Facebook Autopost Types module:

  • You will need to install and enable Facebook Autopost Entity.
  • You will need to install and enable Features.

Upgrade notes

If you upgraded from 7.x-1.0-alpha2 to 7.x-1.0-beta1 you will need to check your rules and update them:

  • Add privacy value if publishing to a user's timeline.
  • Update the page selection. Now only 1 page can be posted at a time.
  • Check the API compatibility if you are publishing programatically.

If you need help figuring out what the field names represent to Facebook, check out this link.

Check out all the changes on the CHANGELOG.

Supporting organizations: 
Development and maintenance

Project information

Releases