发布照片由facebook sharedialog android

时间:2014-03-30 16:25:38

标签: android facebook share photo

我是否知道是否有办法通过facebook sharedialog附上照片,如下面的代码?

FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(this)
.setLink("https://developers.facebook.com/android")
.build();
uiHelper.trackPendingDialogCall(shareDialog.present());

https://developers.facebook.com/docs/android/share/#linkshare

1 个答案:

答案 0 :(得分:0)

FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(this)
    .setLink("https://developers.facebook.com/android")
    .setPicture("https://raw.github.com/fbsamples/ios-3.x-howtos/master/Images/iossdk_logo.png")
    .build();
uiHelper.trackPendingDialogCall(shareDialog.present());