首先,我尝试将邮件发送到我的ID,该邮件已成功发送到我的墙上。现在我尝试使用Python向特定朋友的Facebook墙发布消息,如下面的代码所示:
friends = graph.get_object("me/friends")
friends_id = friends['data'][0]['id']
graph.put_object(friends_id,"feed",message="For testing purpose sent from terminal")
当我尝试将消息发布给我的朋友时,我收到错误
"facebook.GraphAPIError: (#200) Feed story publishing to other users is disabled for this application"
我尝试修复错误,但我得到的解决方案就是“我们无法发布朋友的Feed”。
答案 0 :(得分:0)
Facebook removed the functionality似乎在2013年10月2日使用此特定API发布到其他人的墙上。
您的用例的另一种方法是使用send dialog。
虽然这会向用户发送消息,但根本无法发布到朋友的墙上。
请参阅以前讨论过的这些问题(在其他标签上):