3

可能重复:FB Graph API:作为页面发布,到不同的页面

问题陈述:我试图发布一篇文章,比如说,从 ABC 页面到 XYZ 页面,结果出现了这个错误:

(#200) Posts where the actor is a page cannot also include a target_id other than EVENT or GROUP

注意:我有一个用户页面的 access_token(在这种情况下:ABC)。

到目前为止我已经尝试过:我正在使用facebook_sdk for python来启动 API 调用。

# access_token of page on behalf the post will be published
graph = facebook.GraphAPI(access_token)

response = graph.put_wall_post(
    message=facebook_post_data,
    profile_id=profile_id  # on which post will be published
)

这相当于

{app-id}/feed?access_token=access_token&message=Hello&method=post

manage_pagespublish_pagespublish_actions已经在授予的范围内!

问题:有没有办法解决这个问题?还是我错过了什么?!? 因为可以使用 Facebook UI 将帖子从另一个页面发布到页面

因此,Graph API 文档不包含任何明确的信息。差不多,如果不可能的话!

谢谢你的时间!

4

0 回答 0