Reward users when they post to Facebook with Rules

Last updated on
30 April 2025

Here is a tutorial on how to create a custom link that posts to Facebook, then rewards the user through rules (userpoints, downloads, role, etc)

Install https://www.drupal.org/project/fb_autopost by following the detailed video tutorial at http://vimeo.com/56026903

You should now be able to post to Facebook:

  • When new content has been added
  • 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

What we now want is to reward users when they click on a link:

Install https://www.drupal.org/project/rules_link

1. Create a Rules Link

  • Create a Rules Link of Entity Type: Content
  • Content Type: Example 'Article'

2. Create a Reaction:

  • Condition is of Type: Article
  • Create a new entity: Facebook Publication, type link
  • Set a data value: entity-created-for-fb:field-facebook-link
  • Value: mysite.com/node/1
  • Publish to users timeline: entity-created-for-fb

Now when a user clicks on the link you set up it will post to the users timeline.

Help improve this page

Page status: Not set

You can: