Paul Paul - 1 year ago 441
Android Question

Share a text with facebook messenger?

Is there a way to share a text in facebook messenger using android and maybe facebook sdk as well?

I want to make something like the whatsapp way, choose your text and open an intent to choose the guy you want to send to...
Is there a way to do this with facebook messenger?
It appears in the intent.choose dialog..but I only want to send to facebook messenger..

Answer Source

use this code onClick,,

com.facebook.orca is the package name for fb messenger.

    Intent sendIntent = new Intent();
                    "<---YOUR TEXT HERE--->.");
catch (android.content.ActivityNotFoundException ex) 
    ToastHelper.MakeShortText("Please Install Facebook Messenger");
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download