[英]Posting to Facebook wall in python
I have some strange issue, which maybe doesn't relate to coding at all (in which case I apologize). 我有一个奇怪的问题,也许根本不涉及编码(在这种情况下,我表示歉意)。
I'm trying to post on my facebook wall using python, and I use facepy library. 我正在尝试使用python发布到我的Facebook墙上,并且使用facepy库。 Code looks like something like this: 代码看起来像这样:
graph = GraphAPI(access_token)
graph.post(
path='me/feed',
message = message)
It posts a message on my wall, but this message is only visible for me. 它在我的墙上张贴了一条消息,但此消息仅对我可见。 None of my friends can see this. 我的朋友都看不到。 I don't why is this, my app has public activity privacy and manually I can post messages that every one sees. 我不知道为什么,我的应用程序具有公共活动隐私权,并且我可以手动发布每个人都能看到的消息。
What can cause this behavior? 什么会导致这种行为?
Have you tried setting the privacy settings? 您是否尝试过设置隐私设置? Refer to the Facebook API on Privacy here: https://developers.facebook.com/docs/reference/api/privacy-parameter/ 请参阅此处的隐私权上的Facebook API: https : //developers.facebook.com/docs/reference/api/privacy-parameter/
Specifically, you will want to use privacy={'value':'EVERYONE'}
before posting. 具体来说,您需要在发布之前使用privacy={'value':'EVERYONE'}
。
您应该包括整个JSON字符串
"privacy" = '{"value":"EVERYONE|SELF|...etc"}'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.