【问题标题】:How to post message to friend's Facebook wall如何将消息发布到朋友的 Facebook 墙
【发布时间】:2014-07-12 10:57:17
【问题描述】:

首先我尝试向我的 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")

当我尝试将消息发布给我的朋友时,我收到了错误L

"facebook.GraphAPIError: (#200) Feed story publishing to other users is disabled for this application"

我尝试修复错误,但得到的解决方案类似于“我们无法发布朋友的供稿”。

【问题讨论】:

  • 是的,我不知道我必须在哪里启用???你能告诉我我必须在哪里启用它吗??

标签: python facebook facebook-graph-api


【解决方案1】:

Facebook removed the functionality 似乎在 2013 年 10 月 2 日使用此特定 API 在其他人的墙上发帖。

您的用例的另一种方法是使用send dialog

虽然这会向用户发送消息,但根本不可能在朋友的墙上发帖。

请参阅之前讨论过的这些问题(在其他标签上):

  1. Feed story publishing to other users is disabled for this application
  2. Posting to friends' wall with Graph API via 'feed' connection failing since Feb 6th 2013

【讨论】:

  • 实际上,您无法通过提要对话框在朋友的墙上发布任何内容。您需要使用发送对话框。
  • @luschn 如果您了解更多详细信息,请随时编辑我的社区 wiki :) 我故意将其设为 CW,因为我对它没有太多经验。
  • 啊,不知道我能做到这一点:)
  • 我们可以使用 python 中的发送对话框在其他 facebook 墙上发布消息对吗??
  • @PythonTeam 你应该检查文档,但它看起来像。
猜你喜欢
  • 2012-04-29
  • 2012-04-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多