1. Download the #1 Android News App:   EarlyBird - News for Android
    Dismiss Notice

Posting a Text Status using Facebook API in Android - The simplest method

Last Updated:

  1. xpl0iter

    xpl0iter New Member

    0 down vote favorite

    I have been searching a lot to find a way to do this. But nothing seems to be working for me. Can someone please help in doing this?

    This is my image button for facebook status post:

    This is my mainactivity.java file's corresponding part:

    [HIGH]public class MainActivity extends FacebookActivity {

    private static final String APP_ID = "XXXXXXXXXXXXXXX";

    protected void onCreate(Bundle savedInstanceState) {

    . . . . . . .

    public void shareOnFacebook(View v) {
    //mfacebook = new Facebook("XXXXXXXXXXXXXXX");
    postOnWall("Testing from Android");

    public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.activity_main, menu);
    return true;
    }[/HIGH]Can someone point in the right direction? :)

  2. miXer

    miXer Well-Known Member

  3. xpl0iter

    xpl0iter New Member

  4. jonbonazza

    jonbonazza Well-Known Member

Share This Page