安卓:为什么无法上传到Facebook相册"Profile Pictures"


GraphRequest imagesAlbumPost = new GraphRequest(token, "/1325165102/photos",
                bundle, HttpMethod.POST,
                new GraphRequest.Callback() {
                    public void onCompleted(GraphResponse response) {
                        uploadedPhotoId = "";
                        Log.d("Image Post", "Res =" + response.toString());
                    }
                });

1325165102为专辑Profile Pictures的id(假id)

给出以下异常:

{Response: responseCode: 200, graphbject: null, error: {HttpStatus: 403, errorCode: 220, errorType: OAuthException, errorMessage: (#220) Album or albums not visible}}

正常吗?有办法上传图片到Profile Pictures吗?

不能再上传用户头像相册。

你只能上传到为你的应用程序创建的相册(Facebook会自动这样做,如果你发布到/me/photos),或者你可以上传到特定的相册,而不是"个人资料图片"相册,然后用户可以选择使用该图像作为他们的新个人资料图像自己通过Facebook UI。

希望这对你有帮助!

不,可以上传到facebook相册"个人资料图片",但为此,您必须创建测试用户,并且只能对这些测试用户,您可以上传图片

最新更新