Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The simplest way to post message on user`s wall who is successfully login using your android application is(my working code)_ </p> <pre><code>public class AndroidFacebookWallPost extends Activity { // Your Facebook APP ID: private static String APP_ID = "your App ID here"; // // Instance of Facebook Class: private Facebook facebook; private AsyncFacebookRunner mAsyncRunner; // Your ImageButton that Post Message to Facebook Wall: ImageButton btnPostToWall; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); btnPostToWall = (ImageButton) findViewById(R.id.imageButton1);// Your image button... facebook = new Facebook(APP_ID); mAsyncRunner = new AsyncFacebookRunner(facebook); // set listener for Post Message button btnPostToWall.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { postToWall(); } }); } /** * Method that Post a Text Status using Facebook API on user`s wall. */ public void postToWall() { // post on user's wall. facebook.dialog(this, "feed", new DialogListener() { @Override public void onFacebookError(FacebookError error) { Toast.makeText(AndroidFacebookWallPost.this, "Post fail "+error, Toast.LENGTH_LONG).show(); } @Override public void onError(DialogError error) { Toast.makeText(AndroidFacebookWallPost.this, "Post fail due to "+error, Toast.LENGTH_LONG).show(); } @Override public void onComplete(Bundle values) { Toast.makeText(AndroidFacebookWallPost.this, "Post success.", Toast.LENGTH_LONG).show(); } @Override public void onCancel() { Toast.makeText(AndroidFacebookWallPost.this, "Cancle by user!", Toast.LENGTH_LONG).show(); } }); } } </code></pre> <p>for more please gone through <a href="http://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/" rel="nofollow">Getting Started with the Facebook SDK for Android</a>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload