Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid/Java -- Post simple text to Facebook wall?
    primarykey
    data
    text
    <p>I'm trying to integrate posting to one's wall from within my app. I already have an area where the user can save his/her username and password (encrypted). I would like my program to recall the saved username and password, pass that to Facebook for authentication, and then allow the app to post simple text (maybe a link too) to the user's wall. </p> <p>That said, I've read everything on the developer pages at Facebook (the api looks completely foreign to me... I've never done any type of web app development before... just desktop apps), and experimented with the Java libraries <a href="https://github.com/facebook/facebook-android-sdk" rel="noreferrer">here</a> but to be honest, I don't understand any of the various implementations. Some claim to be simple to use, but apparently they are all way above my head. </p> <p>I've even tried messing with the official Facebook Android SDK, but that uses a webview interface, and I can't pass in the username and password for easy authentication. Plus, I'm still clueless as to how to post to the wall even after correct authentication.</p> <p>Please help. Thanks.</p> <p>Oh, btw I already have a Facebook API key and Application ID.</p> <p>[UPDATE 1]</p> <p>For further clarification: If I use the following code snippet with the official Facebook Android SDK <a href="http://github.com/facebook/facebook-android-sdk" rel="noreferrer">http://github.com/facebook/facebook-android-sdk</a> what should I do next (after the user has logged-in)? This is unclear to me.</p> <pre><code>Facebook facebookClient = new Facebook(); facebookClient.authorize(this, "[APP ID]", new String[] {"publish_stream", "read_stream", "offline_access"}, this); </code></pre> <p>where "this" is an Activity that implements a DialogListener, and "[APP ID]" is my Facebook application ID.</p> <p>Thanks.</p> <p>[UPDATE 2]</p> <p>I found a solution (see below), though the only thing missing is the ability to auto-populate the login text boxes with the data I have stored in the app. The official Facebook Android SDK may not allow for this. I'll keep looking into it.</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.
 

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