Hi guys!
I tried to integrate facebook messenger to send a private message with a photo and a link. But I’m not successful.
I see the game “4 pics 1 word” do this very well. https://play.google.com/store/apps/details?id=de.lotum.whatsinthefoto.us
Do you have any demo source code for this. Please do not refer me to facebook sdk document.
Thanks a lot
I find it on stackoverflow:
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent
.putExtra(Intent.EXTRA_TEXT,
"<---YOUR TEXT HERE--->.");
sendIntent.setType("text/plain");
sendIntent.setPackage("com.facebook.orca");
try{
startActivity(sendIntent);
}
catch (android.content.ActivityNotFoundException ex) {
ToastHelper.MakeShortText(“Please Install Facebook Messenger”);
}