Reputation: 1567
I am a newbie developer on Android and Facebook SDK. I want to share my long description text content to facebook via Facebook SDK 4.0 on Android.
I have a ShareActionProvider on my App and it's working fine with my ShareDialog method. But I have a long description in my app and I want to share this description on Facebook. I imported and configured Facebook Android SDK and It's working fine with this method;
if (ShareDialog.canShow(ShareLinkContent.class)) {
Spanned faceKonu= Html.fromHtml(mShareKonu);
ShareLinkContent linkContent = new ShareLinkContent.Builder()
.setContentTitle(konu)
.setContentDescription(faceKonu.toString())
.setContentUrl(Uri.parse(getString(R.string.share_onfacebook_url)))
.setImageUrl(Uri.parse(getString(R.string.share_onfacebook_image_url)))
.build();
shareDialog.show(linkContent);
}
But this method shows my description text too short on wall or somewhere in facebook.
This is my description screen : https://i.sstatic.net/MT9rh.png This is the facebook api when I tap the share on facebook on ShareActionProvider menu : https://i.sstatic.net/pEPX7.png
How can I post all texts on Facebook like that ?
Thank you !
Upvotes: 0
Views: 1151
Reputation:
Predefined text which is not allowed by facebook is supposed to be everything but the text which is typed character by character. This possibly means that we should use open graph stories instead
Upvotes: 0
Reputation: 265
I have same problem with Android Facebook SDK 4.0. But I found this problem. I use my phone in Turkish. But When I change my phone language to English, problem is solved. That's like a joke. I think it's a bug for now. I hope they might solve this problem.
Upvotes: 3
Reputation: 9912
There is no way for you to influence the length of the preview Facebook shows for the link you shared. Keep the description brief, for everything else people can click on the link the user shared and read your full message.
As noted by Ming Li in the comments, don't publish this text via any other method as all content in the message field has to be user-generated and typed by the user character by character.
Upvotes: 0