我可以将我的应用程序中的图像共享到任何其他公共Facebook页面吗?怎么样?

时间:2017-03-06 12:26:40

标签: android image facebook

Bellow是能够在facebokk页面上仅在我的网络内共享图像的代码。

private void sharePhotoToFacebook(){
    Log.e("in sharemethod", "hiiiiii");
    Bitmap image = BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher);
    SharePhoto photo = new SharePhoto.Builder()
            .setBitmap(image)
            .setCaption("Give me my codez or I will ... you know, do that thing you don't like!")
            .build();

    SharePhotoContent content = new SharePhotoContent.Builder()
            .addPhoto(photo)
            .build();
    shareDialog.show(content);}

我想将图像分享到不在我的facebook网络中的页面。

1 个答案:

答案 0 :(得分:0)

不幸的是你无法分享!

Facebook不允许它,因为为此您需要访问页面的标记,如果您想通过页面上的应用程序共享此页面,则需要不是您的网络的页面必须允许您的应用程序这样做。并且您还需要首先从Facebook获得权限,如发布权限等等。