Android 我可以将我的应用程序中的图像共享到任何其他公共facebook页面吗?n如何?

Android 我可以将我的应用程序中的图像共享到任何其他公共facebook页面吗?n如何?,android,image,facebook,Android,Image,Facebook,下面是一段代码,它允许在facebokk页面上仅在我的网络中共享图像 private void sharePhotoToFacebook(){ Log.e("in sharemethod", "hiiiiii"); Bitmap image = BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher); SharePhoto photo = new SharePhoto.Builder()

下面是一段代码,它允许在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网络中的页面。

很遗憾,您无法共享

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