使用Facebook API标记用户在墙上发布/更新 [英] Tagging a user in a wall post/update using Facebook API

查看:154
本文介绍了使用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?

这篇关于使用Facebook API标记用户在墙上发布/更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆