I’m using this code to post on Facebook, but it does not work with the official Facebook app because it tries to send as a link. Is there any way around this?
Intent s = new Intent(android.content.Intent.ACTION_SEND);
s.setType("text/plain");
s.putExtra(Intent.EXTRA_SUBJECT, "Quote");
s.putExtra(Intent.EXTRA_TEXT, qoute);
startActivity(Intent.createChooser(s, "Quote"));
It’s a bug in the official facebook app. I had to code my own activity to do it using the Facebook SDK for Android. See the code sample below.