user4601183
user4601183

Reputation:

Facebook share with link, title, description and image android

I am trying to share some data over Facebook through below code but it is not displaying.

ShareDialog shareDialog = new ShareDialog(BillsDetailWebActivity.this);
ShareLinkContent content = new ShareLinkContent.Builder()
                .setContentTitle(billTitle)
                .setImageUrl(Uri.parse("some image uri"))
                .setContentDescription("some desc")
                .setContentUrl(Uri.parse(preferenceManager.getURL()))
                .build();
shareDialog.show(content, ShareDialog.Mode.AUTOMATIC);

Any help to just add these details once shared over FB? Thanks in advance.

Upvotes: 0

Views: 235

Answers (1)

akhilesh0707
akhilesh0707

Reputation: 6899

As of April 18, 2017, the following parameters are no longer supported by Graph API versions 2.9 and higher. For versions 2.8 and lower, the parameters will continue working until July 17, 2017.

  • contentTitle
  • imageURL
  • contentDescription

These params not supported by Facebook anymore.

For more info go to this Facebook Official doc

Upvotes: 1

Related Questions