Post my application result to Facebook

2

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

How would you do that, can not find on the internet that can help me with this option

    
asked by anonymous 04.11.2016 / 19:59

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 applications to share.

    
04.11.2016 / 20:23