3

I have used share inbuilt dialog of android. Which fetch all application which is getting ACTION_SEND intent. My code is

        Intent sharingIntent = new Intent(Intent.ACTION_SEND);
        sharingIntent.setType("text/plain");            
        sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT,
                sharetext);
        startActivity(Intent.createChooser(sharingIntent, "Share"));

I am getting all apps like bluetooth, gmail, facebook, messaging, twitter, whatsapp in the list

All apps getting my message but not facebook. What should i do to send message in facebook app. How it will detect my message. Any help will be appreciated. Thanks.

djk
  • 3,671
  • 9
  • 31
  • 40
  • is facebook showing in the chooser? or is the problem related to facebook not taking in account your EXTRA_TEXT? – Romain Piel Nov 07 '11 at 10:51
  • yes, facebook app shows in the chooser. but not getting message sent form my app. And i have accepted answers whenever i got the perfect answers. But unfortunately i dint receive and i dont accept fake answers. – djk Nov 07 '11 at 10:56

1 Answers1

4

It is a known bug and it's recorded on Facebook Platform Developers forum: http://forum.developers.facebook.net/viewtopic.php?id=93900

Apparently sharing text on facebook is possible on a few phones but it's still buggy on others: Share Text on Facebook from Android App via ACTION_SEND

Community
  • 1
  • 1
Romain Piel
  • 11,017
  • 15
  • 71
  • 106