我正在使用Facebook SDK依赖项“com.facebook.android:facebook-android-sdk:4.6.0”。
我想分享一张带有一些文本的照片。这是我从参考资料中使用的代码:
SharePhoto photo = new SharePhoto.Builder()
.setBitmap(image)
.setCaption("my caption appears here")
.build();
SharePhotoContent photoContent = new SharePhotoContent.Builder()
.addPhoto(photo)
.build();
shareButton.setShareContent(photoContent);
在分享对话框中和Facebook时间线上,它不显示标题。如何在Facebook墙上发布带有文本的图像?