-1
我正在使用:FacebookDialog.MessageDialogBuilder,我想添加朋友的ids,我從facebook的sdk.Or得到或如何預先選擇名稱,然後打開Facebook消息對話框。如何預先選擇Facebook好友,同時發送消息
private void showFacebookMessageDialog() {
try {
FacebookDialog.MessageDialogBuilder builder =
new FacebookDialog.MessageDialogBuilder(this)
.setLink("https://developers.facebook.com/docs/android/share/")
.setName("Message Dialog Tutorial")
.setCaption("Build great social apps that engage your friends.")
.setPicture("http://i.imgur.com/g3Qc1HN.png")
.setDescription("Allow your users to message links from your app using the Android SDK.")
.setFriends(Arrays.asList("111","123"));
;
builder.build().present();
} catch (FacebookException ex) {
// error handling
}
}