wearethoughtfox / amnesty-facebook

0 stars 0 forks source link

Tag Amnesty Facebook page in all nomination posts #62

Closed robertocarroll closed 7 years ago

robertocarroll commented 7 years ago

Reference

message_tags - Profiles tagged in message. This is an object with a unique key for each tag in the message object Each tag in the message has a unique key within the message_tags object, which also indicates the order in which it appears in the message. The corresponding value of this key is another object representing the tag itself.

https://developers.facebook.com/docs/graph-api/reference/v2.9/post

robertocarroll commented 7 years ago

I've added Amnesty's ID as a comma-separated list

{ "message":"James Langton is a Human Rights Defender. Here's why: \n\nTest test test", "tags":"AaIPtw4memK78bGHGlaqZa-H46D4Vhld1HTOsM8YyaECeSk7BuSjuja9H0jvLS2wz4Lsj0NEDIBYX3bj6uDv9A1MhwdxfuzifHrDaUgu91d_8w,111658128847068", "link":"https://www.amnesty.org/en/get-involved/brave/" }

Perhaps this only accepts the user ID that comes from taggable_friends?