title: Posting a Text Status using Facebook API in Android - The simplest method
body: <p>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?</p>
  
  <p>This is my image button for facebook status post:</p>
  
  <pre><code>&lt;ImageButton
      android:id="@+id/imageButton1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignRight="@+id/hoributtons"
      android:layout_alignTop="@+id/imageButton2"
      android:background="#00000000"
      android:contentDescription="@string/facebook"
      android:onClick="shareOnFacebook"
      android:src="@drawable/facebookbutton" /&gt;
  </code></pre>
  
  <p>This is my mainactivity.java file's corresponding part:</p>
  
  <pre><code>public class MainActivity extends FacebookActivity {
  
      private static final String APP_ID = "xxxxxxxxxxxxx";
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
      }
  
  
  
  public void shareOnFacebook(View v) {
          //mfacebook = new Facebook("xxxxxxxxxxxxx");
      }
  
      @Override
      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;
      }
  }
  </code></pre>
  
  <p>Can someone point in the right direction? :)</p>