Hello,
I need help for starting make the first rule that publish a link of a post to Facebook.
I can't find it into the documentation, and I can't see video from the office, anyway I think that some lines of doc for beginners should be very appreciated.

So, my rule is incomplete because I don't know what to do after having create the entity.
I know that I should make an action "post to facebook", but from the logs of other people I see something like "set data, what is it?
this is my piece of rule:
{ "rules_post_to_facebook" : {
"LABEL" : "post to facebook",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"REQUIRES" : [ "rules" ],
"ON" : { "node_insert" : [] },
"IF" : [
{ "node_is_published" : { "node" : [ "node" ] } },
{ "node_is_of_type" : {
"node" : [ "node" ],
"type" : { "value" : {
"article" : "article",
"page" : "page",
"contest" : "contest",
"guidaios" : "guidaios",
"guidamac" : "guidamac",
"app_ios" : "app_ios",
"app_mac" : "app_mac",
"recensioni_accessori" : "recensioni_accessori"
}
}
}
}
],
"DO" : [
{ "entity_create" : {
"USING" : {
"type" : "facebook_publication",
"param_type" : "post",
"param_user" : [ "node:author" ]
},
"PROVIDE" : { "entity_created" : { "entity_created" : "Entit\u00e0 creata" } }
}
}
]
}
}
and what is next step please?

Comments

dkre’s picture

Set the link?

I don't quite see what you've posted that isn't covered in the tutorial videos.

Fetch/create the entity, update/set the data, post and save.