Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Assuming that you want to post on your own wall (since the question is not clear), this should work for you. </p> <pre><code>public class MainActivity extends Activity { private static final String APP_ID = "xxxxxxxxxxxxx"; private Facebook mFacebook; private AsyncFacebookRunner mAsyncRunner; private EditText yourEditText; private String toShare; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mFacebook = new Facebook(); mAsyncRunner = new AsyncFacebookRunner(mFacebook); SessionEvents.addAuthListener(new SampleAuthListener()); SessionEvents.addLogoutListener(new SampleLogoutListener()); yourEditText = (EditText) findViewById(R.id.&lt;youreditTextId&gt;); toShare = yourEditText.getText().toString(); } public void shareOnFacebook(View v) { Bundle params = new Bundle(); params.putString("message", toShare); mAsyncRunner.request("me/feed", params, "POST", new RequestListener() { public void onMalformedURLException(MalformedURLException e) {} public void onIOException(IOException e) {} public void onFileNotFoundException(FileNotFoundException e) {} public void onFacebookError(FacebookError e) {} public void onComplete(String response) { } }); Toast.makeText(MainActivity.this, "Posting to your Wall", Toast.LENGTH_SHORT).show(); } } </code></pre> <p>For details on posting pictures to wall, <a href="https://developers.facebook.com/blog/post/526/">Facebook</a> has a good documentation.</p>
    singulars
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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