Closed (fixed)
Project:
Facebook Autopost
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
12 Mar 2013 at 15:25 UTC
Updated:
31 Mar 2013 at 12:40 UTC
Could someone please walk me though how to update a Facebook link that was created with Facebook Autopost?
For example, I create a node in Drupal that has the url:
www.mysite.com/new-node
I am using Facebook Autopost (great module, BTW!) to create a link on a Facebook page and then store the Facebook publication id back in the created entity.
That works fine.
But what if the node is updated and the url is changed to:
www.mysite.com/new-node1
How can I update the Facebook link to match the new drupal node url?
I see one of the actions is Fetch Entity By ID and I assume my option in that is Facebook Publication but I'm not sure what to use as the identifier. Perhaps NID?
Comments
Comment #1
sifuhall commentedJust an update, from viewing this video:
http://nodeone.se/sv/node/783
It looks as if I must create a new field on my nodes and update these fields with the entity reference.
Can anyone confirm if this is the correct way?
Comment #2
e0ipsoYou need to store the facebook publication id in the Facebook publication entity. You also need to store the reference in the node to link the publication entity (that knows how to update in facebook) and the node you are tracking.
Cheers.
Comment #3
sifuhall commentedThank you!
I think I am beginning to understand.
I followed the video on the module page and I am saving the reference to the entity but I am not storing the reference to the entity in the node.
I've searched for this but not had much luck.
Does anyone know of a tutorial or explanation on how to best do this?
Comment #4
sifuhall commentedI've been working on this for two days and so far still no luck.
I'm sure it is much easier than this but I'm having a difficult time understanding how to do this.
I'm posting my results here in case it may help someone in the future.
I added an entity reference field to my content type and I am storing the the entity there.
My current issue is when trying to update.
My goal is to update the facebook link when the content is updated.
I have a rule that runs when content is updated and one of the actions is Update In Facebook.
However, when I attempt to enter the ID returned from facebook the entity in my node only has the fields TYPE and USER available.
Comment #5
sifuhall commentedI'm still struggling with this and hopefully someone can help.
Does anyone know what I need to do to make the field facebook_id accessible so I can use that to target the Facebook publication so I can update?
I've tried using the Entity Has Field on the entity, and then another Entity Has Field so I could add facebook_id but it isn't available in the list (but it seems the other facebook fields are).
Any help is really appreciated!
Comment #6
e0ipsoPlease, read http://drupal.org/node/1945138