Quantcast
Viewing all articles
Browse latest Browse all 426

Update a remote Facebook publication based on node changes.

Chances that you are publishing a Facebook publication link on the user timeline or to a Facebook fan page upon node creation are quite high.

The video tutorial and rules can help you greatly with that. The problem arises when you want to keep track of the changes in your node and reflect those changes in your Facebook publication. To do so you will need to store the facebook publication remote ID Facebook assigns to your publication when is posted.

The most common place to store this is in the Facebook Publication entity you created. Then the workflow is:

  1. Create the Facebook Publication entity.
  2. Publish the newly created entity to Facebook. This will return a facebook_publication_remote_id.
  3. Store the facebook_publication_remote_id in the Facebook Publication entity. There is a field specially designed for that.
  4. Save the Facebook Publication entity.

The only problem you need to solve is connect your node with the corresponding Facebook Publication entity(ies). The most simple way to do it is adding an entity reference field in your node type. This way you will need to:

  1. Create the Facebook Publication entity.
  2. Publish the newly created entity to Facebook. This will return a facebook_publication_remote_id.
  3. Store the facebook_publication_remote_id in the Facebook Publication entity. There is a field specially designed for that.
  4. Save the Facebook Publication entity.
  5. Set your newly created entity reference field to store your Facebook Publication entity.
  6. Save your node.

Now your node is connected with your Facebook Publication entity and this means that you can retreive the facebook_publication_remote_id associated with the node to feed the “Update Facebook Publication” rule’s action.


Viewing all articles
Browse latest Browse all 426

Trending Articles