this does not work for facebook, because Facebook can only use the link through ACTION_SEND. if u wants to send the text as well as the link.
First, you need to get a list of installed applications that support ACTION_SEND, then build a dialog
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
List activities = getPackageManager().queryIntentActivities(sharingIntent,0);
, , . facebook facebook api, , , , .
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setClassName(,);
sharingIntent.setType("text/plain");
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,"hello");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, "facebook");