-1

How to create some specific share intent for social media?

Currently, my code is like this:

Intent share = new Intent(android.content.Intent.ACTION_SEND);
share.setType("text/plain");
share.putExtra(android.content.Intent.EXTRA_EMAIL, new String[] {});
share.putExtra(Intent.EXTRA_SUBJECT, "The EssexPass");
share.putExtra(Intent.EXTRA_TEXT, "Deal Name: " + Bussinessname);
share.putExtra(Intent.EXTRA_TEXT, "Deal: " + deals);
share.putExtra(Intent.EXTRA_TEXT, "Address: " + city + "," + country);
Log.e("Share intetn", "25th April ::-" + share);
startActivity(Intent.createChooser(share, "Share Deal"));

I use this code for share intent but in facebook I can't share.

Cristik
  • 30,989
  • 25
  • 91
  • 127
Hardik Parmar
  • 712
  • 2
  • 13
  • 28
  • http://code.tutsplus.com/tutorials/android-sdk-implement-a-share-intent--mobile-8433 or http://www.techrepublic.com/blog/software-engineer/get-social-using-android-intents-to-share-a-link/ – Anoop M Maddasseri Apr 25 '15 at 10:08

1 Answers1

2

It's bug in Facebook app. Here you can find more details: Android and Facebook share intent

Facebook will NOT fix this bug, they say it is "by design" that they broke the Android share system : https://developers.facebook.com/bugs/332619626816423

Community
  • 1
  • 1
Ziem
  • 6,579
  • 8
  • 53
  • 86