使用Facebook API标记用户在墙上发布/更新
问题描述:
我正在使用stream.publish写入用户的墙壁,并尝试使@ tagging工作,但无效。
I'm using stream.publish to write to the user's wall and attempted to get "@ tagging" to work but with no avail.
如果用户的名字是Fred,他的Uid是1234,我试着发送@Fred,@ 1234,@ [1234],@ [Fred]等,无法让它工作。原始的字符串每次都会显示。
If the user's name is Fred and his uid is 1234, I tried sending over "@Fred", "@1234", "@[1234]", "@[Fred]", etc. and couldn't get it to work. The raw string would display every time.
有人可以使用API确认是否可以这样做?谢谢!
Can someone confirm if this is possible with the API or not? Thanks!
答
正确的语法是
@ [user_id: 1:name]
@[user_id:1:name]
它显示为标签,但不会触发通知。任何人都知道为什么?
it shows as a tag, but it doesn't trigger a notification. Anyone knows why?