Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to post highest score in facebook wall (android + facebook)

I am developing an android game integrated with facebook api. how can is post my score in game to facebook wall.

I looked at open graph but could not figure out how to make it work.

Cheers, T_T

like image 966
Prina Bajracharya Avatar asked Nov 22 '11 14:11

Prina Bajracharya


1 Answers

That's the code I use:

    final Bundle params = new Bundle();
    params.putString("message", "message to show on the user's wall");
    params.putString("picture", "picture url");
    params.putString("link", "link - (I put market link here)");
    params.putString("name", "Link name");
    params.putString("description", "description bellow the link");

Then call:

this.mFacebook.request("me/feed", params, "POST");

You can read more here.

like image 143
Jong Avatar answered Oct 03 '22 18:10

Jong