Post my app result on Facebook

Asked

Viewed 58 times

2

Good afternoon... my app is to follow soccer game... containing number of goals, which teams.... and when you click to save it shows to me time1 X time2 = 2 x 0 (example) and wanted to share on facebook... I registered my account as developer and on their site, it seems that only to share within the app (Images, videos or links) and I wanted to share a recorded message as the example above... the same String/int that goes to listview goes to facebook.

How would I do that, not be able to find on the internet that can help me with this option

1 answer

4


Nathan, have you ever tried using an Intent?

    String message = "Text I want to share.";
    Intent share = new Intent(Intent.ACTION_SEND);
    share.setType("text/plain");
    share.putExtra(Intent.EXTRA_TEXT, message);

    startActivity(Intent.createChooser(share, "Title of the dialog the system will open"));

It will open a list of apps to share.

  • I liked it this way... give me other options, but for example I choose facebook the message does not get recorded, when open it appears to me to write something but the message is not recorded, would you have any idea to help me? Already the Whatsapp works...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.