I'm simply trying to make blog posts automatically go to the site's fb page. I'm trying to follow the video online but not really sure how to import or configure facebook publication types although I tried anyway. in the video it looked like they were automatically there. I have my fb page, fields from the fb publication type in my blog post content type but when creating rules, I get to adding the first action and it wants a data type but there are no options in the drop down or relevant autocompletes. what should go in that? I get this error "Data selector ...whatever I put.. for parameter param_user is invalid."

Comments

markusa’s picture

I just completed doing basically the same thing you are trying to do...I can testify that the module does work. It took me about 5 hours to configure the facebook app and this module to get the configuration right.

I used the "Facebook autopost types" module that comes with as a sub-module.

This created the correct fields I needed to use.

First I created an action "Create Entity", of "Facebook Publication" , type "Post"

Then I set the name field with the value of the blog article title, the message with body, and the link with the node url. I used "Set data value" actions.

Then added the "Publish to Facebook user's timeline" action, set the returned facebook publication id to the Facebook Publication entity that was created first, and added an action to save the entity.

I did have to set several permissions in the config for the Facebook Permissions module, Manage Pages, Publish Actions, Publish Streams, and logout and log back in with the admin user.

vallab444’s picture

Thanks, Markusa, your comment helped me without having to research a lot. In fact, I could achieve this rather fast

This is what I did:
STEP 1. Set up a rule to 'Create FB Post'. This is triggered when a new node is posted. It has these actions
Create a new entity
Parameter: Entity type: Facebook publication, Type: Post, User: [node:author]
Provides variables: Tumblo FB Post (tumblo_fb_post)

Set a data value
Parameter: Data: [tumblo-fb-post:field..., Value: [node:title]

Set a data value
Parameter: Data: [tumblo-fb-post:field..., Value: [node:url]

Set a data value
Parameter: Data: [tumblo-fb-post:field..., Value: [node:field_photo]

Set a data value
Parameter: Data: [tumblo-fb-post:field..., Value: [node:summary]

With this, the FB post will have a linked Title, photo and Summary

STEP 2: Added another rule 'Post to FB Page'. This has only one Action, to publish to FB

Here, Data Selector is Facebook Publication, Facebook Page ID autogenerated and FACEBOOK PUBLICATION RETURNED ID. The last one is important, it has to be the same as the Created entity ID in the first rule

It worked well in several tests.

MANY THANKS TO Mateu Aguiló -a prolific Drupal contributor-FOR THIS FANTASTIC MODULE

e0ipso’s picture

Status: Active » Fixed

Thanks for the kind words @vallab444. Maybe you'd have the time to write a recipe/tutorial (or a couple :-P) in the official documentation in https://www.drupal.org/node/2275389.

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.