0

while i have successfully shared strings to other apps like email.. there's a problem with facebook...

here's my code:

 private void sharePost() {

Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.putExtra(Intent.EXTRA_TEXT, dataSecContent);
shareIntent.setType("text/plain");
startActivity(Intent.createChooser(shareIntent,
        getString(R.string.share_chooser_title)));
 }

this is what i only get... no strings or whatsoever...

facebook share

what am i doing wrong? i've tried sending URLs with uri and it successfully shared.. but not strings..

Christian Burgos
  • 1,572
  • 9
  • 26
  • 48
  • possible duplicates http://stackoverflow.com/questions/3515198/share-text-on-facebook-from-android-app-via-action-send and http://stackoverflow.com/questions/7545254/android-and-facebook-share-intent?rq=1 still not solved – chip Feb 14 '14 at 02:52
  • @zipc yeah its the same.. i have just checked them out... there's a bug on the side of facebook i think. – Christian Burgos Feb 16 '14 at 03:47

1 Answers1

0

Facebook does not handle the EXTRA_TEXT field. From this bug report page asking why "... the Facebook Android application is unable to accept the EXTRA_SUBJECT and EXTRA_TEXT fields," the answer was that:

"...our API does not support pre-filling the message for users as seen in our Policy Documentation here (https://developers.facebook.com/docs/guides/policy/application_integration_points/) under Platform Policy IV.2."

jomartigcal
  • 813
  • 1
  • 6
  • 11