7

I use the Facebook graph api to post a video:

https://graph-video.facebook.com/v2.3/{page_id}/videos?title=video&access_token={
page_access_token}&file_url={file_path
}

When I login as app developer, using developer page_id and page_access_token, the call is good. It returns me the video id.

When I login as test user (not tester account in the App role), using test user page_id and page_access_token, I got:

{"error":{"message":"(#100) No permission to publish the video","type":"OAuthException","code":100}}

I use Facebook token debug. Both tokens have the same scope user_videos, manage_pages, publish_pages, publish_actions, public_profile.

Since both access tokens carry the same scope, why has the test user call return no permission to publish video even though the token has publish_actions, publish_page permission? But the admins/developers are able to post video?

Any help is greatly appreciated.

4

4 回答 4

0

OAuthException 让我相信您的访问令牌有问题,您是否正确创建它?https://developers.facebook.com/docs/facebook-login/access-tokens

(来自https://developers.facebook.com/docs/graph-api/using-graph-api/#errors

OAuthException:登录状态或访问令牌已过期、被撤销或无效

于 2015-05-20T14:58:59.243 回答
0

根据我的经验,我发现您应用的测试用户无法管理任何页面。因此,您的应用程序的测试用户将无法在任何页面上发帖。

使用您的应用程序将视频发布到 Facebook 页面以供审核时录制视频是一个好主意。

于 2015-05-22T10:40:47.577 回答
0

我将 sdk 替换为V2.0,现在视频上传工作顺利。

于 2015-05-28T11:29:05.157 回答
0

对于“ publish_actions ”,您需要向 facebook 提交请求。

这是一个教程http://help.tanaza.com/customer/portal/articles/1655303-how-to-get-publish_actions-facebook-permission

我正在使用适用于 iOS 的 FacebookSDK 3.23.2,但我遇到了同样的问题。我可以使用我的开发帐户上传视频,但测试人员不能。测试人员的令牌是“publish_actions”..-less。

于 2015-06-24T13:44:00.290 回答