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

查看:22
本文介绍了使用 Facebook API 在墙贴/更新中标记用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 stream.publish 写到用户的墙上,并试图让@标记"工作但无济于事.

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天全站免登陆