Search code examples
javaandroidfacebookandroid-intentfacebook-android-sdk

Sharing text in facebook with Android share intent


Possible Duplicate:
Android share intent for Facebook

I'm trying share some text and a link in facebook with a share Intent in Android, but it don't works, this is my code

Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.setType("text/plain");
sendIntent.putExtra(Intent.EXTRA_TEXT, 
"some text here to share" + "https://maps.google.com/maps?saddr=-33.4429,+-70.6539");

startActivity(Intent.createChooser(sendIntent, getResources().getText(R.string.d_title)));

but just is shared the link, the text is missing... in twitter it works fine, but in facebook not. Help please :S thanks


Solution

  • -- This answer has been changed --

    According to the OP, this is not actually possible. He found a link (and he commented it down below) but here it is again: https://developers.facebook.com/bugs/332619626816423

    Apparently prefilling a user's message is (or was at the time) disallowed due to the privacy policy.