Android Facebook 将带文字的照片分享为 Link

Android Facebook Share Photo with Text as Link

Facebook SDK 不断变化,我想知道如何上传带有单独文本(未嵌入)的照片(分享时)。

SharePhoto photo = new SharePhoto.Builder()
                    .setBitmap(newBitmap)
                    .setUserGenerated(true)
                    .build();

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


            ShareDialog.show(Main.this, content);

有没有办法把文字放在照片后面,或者甚至让分享消息(用户可以在其中输入)预先填充一些文字? 对了,我用的是这个版本的FB:

compile 'com.facebook.android:facebook-android-sdk:4.0.1'

好的,我现在明白反对票了。不阅读政策(只是因为我从来没有真正这样做过)。它在那里指出:

Don't prefill captions, comments, messages, or the user message parameter of posts with content a person didn’t create, even if the person can edit or remove the content before sharing.

来源:https://developers.facebook.com/policy/

预填充带图片的文字不再有效

https://developers.facebook.com/docs/apps/review/prefill