Tagging a user in a wall post/update using Facebook API

前端 未结 3 1580
隐瞒了意图╮
隐瞒了意图╮ 2020-12-06 07:57

I\'m using stream.publish to write to the user\'s wall and attempted to get \"@ tagging\" to work but with no avail.

If the user\'s name is Fred and his uid is 1234,

相关标签:
3条回答
  • 2020-12-06 08:38

    the correct syntax is

    @[user_id:1:name]

    it shows as a tag, but it doesn't trigger a notification. Anyone knows why?

    0 讨论(0)
  • 2020-12-06 08:42

    Maybe you need follow this: NOTE: You cannot specify this field without also specifying a place.

    You need to specify a place with the fan page ID of the location associated with the post. more… https://developers.facebook.com/docs/reference/api/user/#posts

    0 讨论(0)
  • 2020-12-06 08:49

    reese:

    @[user_id:1:name] - It will replace it with the 'name' which you have given

    @[user_id:0] - This will notify the user BUT it will happen when you MANUALLY typing it in wall or comment section NOT through graph api, say for eg., if you want to notify this user @[user_id:0] so you are appending this text in message parameter of https://graph.facebook.com/feed api it won't work, I hope you understand :)

    0 讨论(0)
提交回复
热议问题