开发者

How to tag a friend in any Post generated by a facebook application?

When we update status in facebook, we can tag a friend in it by issuing a @ symbol 开发者_开发知识库and typing the friends name.

Similar to this, I want to tag some friend in a post generated by my facebook application. I have searched in the facebook GRAPH API for the solution but couldn't find it. I have seen some application doing this. Can you please tell me how this can be accomplished.


This article describes how to do it: http://www.takwing.idv.hk/tech/fb_dev/faq/graphapi/graph_32.html

From the article:

To have your friend's name to be displayed as a link to his/her user profile when publishing a post via Graph API, you can use the syntax when formatting the message:

@[{user_id}:1:{name}]

For example, if you want to publish the message "I had met my old friend XXXX today!" where XXXX will be a link to your friend's profile (with user ID 1234567890), then simply prepare the message as:

I had met my old friend @[1234567890:1:XXXX] today!

Then publish it via Graph API as usual.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜