How to tag user in Facebook post using Graph API?

Alexander Savin picture Alexander Savin · Jul 30, 2012 · Viewed 8.1k times · Source

I did a research, and most of the topics are at least one year old. So, wondering is there a way to tag user in the Facebook wall post using Graph API?

Some relevant but not working solutions: http://digitizor.com/2011/01/24/tag-user-facebook-graph/

FB documentation for the wallpost mentions message_tags field, which is "Objects tagged in the message (Users, Pages, etc)". https://developers.facebook.com/docs/reference/api/post/

So is it possible somehow to add a tag in the wallpost to another user knowing its id?

Trying to implement this in the Rails application using Koala gem.

Answer

CBroe picture CBroe · Jul 31, 2012

The @[id:name] way of tagging people inside of a post’s text content has been removed quite some time ago; it is only available to user actually posting through Facebook, not via API.

You can however tag people as “being with you” when making the post – but that requires a location as well, and as Gil already said should only be done if people were actually physically with you at the time of posting.

For details, see https://developers.facebook.com/docs/reference/api/user/#posts