Search code examples
facebookfbmlfacebook-wall

Is there a way to insert an @mention into a Facebook status update posted with pyfacebook?


I have some code like the following in my application:

message = "Hi, @John Doe!"
postID = fb.stream.publish(
    message = loader.render_to_string('wall_post.phtml', {'message':message}),
    action_links = simplejson.dumps([{'text': "Check out blah", 'href': "http://blah.dev"}]),
    target_id = 'nf'
)

Is there any way to represent a facebook @mention in the message string so that facebook converts it to a profile link for the mentioned user?


Solution

  • Mention it's partially available by open graph now. You can use only when posting an open graph ACTION

    Check: https://developers.facebook.com/docs/opengraph/mention_tagging/

    It seems still impossible to use @mention tagging in classic feed posting via API