I am using this code to share user achievements on my app
if (FacebookDialog.canPresentShareDialog(getApplicationContext(),
FacebookDialog.ShareDialogFeature.SHARE_DIALOG)) {
// Publish the post using the Share Dialog
try {
FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(this)
.setApplicationName(getString(R.string.fb_app_name))
.setName(parameters.getString("name"))
.setCaption(parameters.getString("caption"))
.setDescription(parameters.getString("description"))
.setLink(parameters.getString("link"))
.setPicture(parameters.getString("picture"))
.build();
uiHelper.trackPendingDialogCall(shareDialog.present());
} catch (JSONException e) {
e.printStackTrace();
}
when I am setting the "link" to my app Google Play link after share only content of Google Play link shown on my wall (It looks like I shared the app link), but if I am also want to see "caption" and "description".
How to share a story from my app with some story + link of my app? Thanks in Advance
Aucun commentaire:
Enregistrer un commentaire