伙计们,所以...我无法使用 facebook sdk 在 facebook 中共享一些预先填充的文本的图像。我在我的应用程序中使用此代码:
SharePhoto sharePhoto = new SharePhoto.Builder()
.setBitmap(bitmap)
.build();
SharePhotoContent content = new SharePhotoContent.Builder()
.addPhoto(sharePhoto)
.build();
ShareDialog.show(this, content);
我在 facebook 文档上读到,有一种 SharePhoto.Builder 对象的方法来将字符串设置为标题:
SharePhoto.Builder().setCaption(String capition)
但是当我将它添加到我的 sharePhoto 对象时,它似乎不存在。那么如何在我的帖子中添加预填充文本?照片/图像是我的应用程序的截图!有人有解决方案吗?