I use the following code to share content
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_TEXT, "The status update text");
startActivity(Intent.createChooser(intent, "Dialog title text"));
It is OK for email, sms and whatever except Facebook. I google the reason and it seems that it is a bug of facebook since April but unfortunately no one fixes it.
However, I find that many app can still use intent chooser to invoke Facebook successfully such as Google reader. How can they do it?
As I know, we can use Facebook API, but how they can know user choose facebook in the chooser and invoke the facebook API?