将视频上传到Facebook页面会给出一个FACEBOOK_NON_JSON_RESULT

时间:2013-05-03 15:22:50

标签: android facebook facebook-graph-api

我成功将视频上传到Facebook帐户主时间轴,但当我尝试使用Facebook Graph API(页面访问令牌)将视频上传到Facebook页面时 来自android原生应用程序。 (使用Facebook SDK 3.0.1版本) 但视频无法上传并收到错误:

**Graph URL** = https://graph-video.facebook.com/my_page_id/videos

params.putByteArray("source", byteArray);
params.putString("title", file.getName());
params.putString("description", getComment());
params.putString("access_token", getPageAccessToken());

**Request request = new Request(session, graphPath, params, HttpMethod.POST);**

{Request:  session: {Session state:OPENED, token:{AccessToken token:ACCESS_TOKEN_REMOVED permissions:[publish_actions, video_upload, user_videos, publish_stream, manage_pages]}, appId: **my_app_id** }, graphPath: **https://graph-video.facebook.com/my_page_id/videos**, graphObject: null, restMethod: null, httpMethod: POST, parameters: Bundle[{source=[B@42cfd058, description=desc_Details, **access_token=page_access_token**, migration_bundle=fbsdk:20121026}]}


Get and facebook response :

{Response:  responseCode: 200, graphObject: GraphObject{graphObjectClass=GraphObject, state={"FACEBOOK_NON_JSON_RESULT":false}}, error: null, isFromCache:false} 

我找不到会出错的地方......

1 个答案:

答案 0 :(得分:0)

这是因为您无权执行此操作。检查您的Facebook应用程序权限