有没有办法将@mention插入到使用pyfacebook发布的Facebook状态更新? [英] Is there a way to insert an @mention into a Facebook status update posted with pyfacebook?
本文介绍了有没有办法将@mention插入到使用pyfacebook发布的Facebook状态更新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的应用程序中有一些代码如下:
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'
)
有没有办法在消息字符串中表示Facebook @mention,以便Facebook将其转换为所提到的用户的个人资料链接?
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?
推荐答案
现在可以通过开放图表来提及它。您只能在发布打开的图表时使用ACTION
Mention it's partially available by open graph now. You can use only when posting an open graph ACTION
检查:
https://developers.facebook.com/docs/opengraph/mention_tagging/
似乎仍然无法使用通过API
It seems still impossible to use @mention tagging in classic feed posting via API
这篇关于有没有办法将@mention插入到使用pyfacebook发布的Facebook状态更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文