Unable to share on Facebook using createChooser()

Put your problem here if it does not fit any of the other categories.

Unable to share on Facebook using createChooser()

Postby anaeem » Wed Sep 14, 2011 3:37 am

I am using following code to share text using sharing option similar to Android Gallery. When I select Facebook it takes me too facebook interface (Post to your wall) with an empty text box. Why text box is not populated with text that I want to share?

Also if I share text with gmail, text is there.

Here is the code

Code: Select all
Intent i=new Intent(android.content.Intent.ACTION_SEND);
             i.putExtra(Intent.EXTRA_SUBJECT, "some text");
             i.putExtra(Intent.EXTRA_TEXT, Share_Text);
             startActivity(Intent.createChooser(i, "Share..."));
Experienced Developer
Experienced Developer
Posts: 85
Joined: Mon May 03, 2010 6:15 am
Location: Texas


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 8 guests