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

前端 未结 3 1593
隐瞒了意图╮
隐瞒了意图╮ 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: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 :)

提交回复
热议问题