我成功地将视频上传到 facebook 帐户主时间线,但是当我尝试使用 android 本机应用程序中的 facebook Graph API(页面访问令牌)将视频上传到 facebook 页面时。(使用 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}
我找不到会出现什么问题...