Use Intent.ACTION_SEND share facebook text

0

I'm using the code below to share text with facebook. The problem is that other networks work, but facebook goes blank. Has anyone gone through this?

Intent compartilha = new Intent(Intent.ACTION_SEND);
compartilha.setType("text/plain");
compartilha.putExtra(Intent.EXTRA_SUBJECT, "Compartilhando frase");
compartilha.putExtra(Intent.EXTRA_TEXT, "Texto exemplo!");
startActivity(Intent.createChooser(compartilha, "Compartilhando"));
    
asked by anonymous 04.01.2015 / 15:54

1 answer

0

This really happens and is how it was designed, according to Facebook. Take a look at this bug report :

  

Jesse Chen · Facebook Team

     

Hi Facebook Developers,

     

This issue is going to be closed by design because our API does not   support pre-filling the message for users as seen in our Policy   Documentation here   ( link )   under Platform Policy IV.2.

     

Thanks, Jesse

In other words, if you try to send some Intent to Facebook with text, they do not know if the user wrote this or was another application. It simply ignores the text and lets the user actually type what they want.

    
05.01.2015 / 11:45