How to post on Facebook with Android using the latest SDK

Posted by user645402 on Stack Overflow See other posts from Stack Overflow or by user645402
Published on 2011-07-27T16:23:35Z Indexed on 2012/03/23 17:30 UTC
Read the original article Hit count: 171

Filed under:
|
|
|

All the samples I have seen so far seem to be using an earlier version of the SDK and the parameters and calls don't match. Using the latest SDK, I'm trying this:

            String access_token = facebook.getAccessToken();
            Bundle bundle = new Bundle();
            bundle.putString("access_token", access_token);
            bundle.putString("app_id", FACEBOOK_APP_ID);
            bundle.putString("message", "My First Post");
            bundle.putString("description", "My First Description");
            asyncrunner.request("me/feed", bundle, new RequestListener() {

And i get back a call to onComplete() with response = "{"data":[]}.

And nothing ever gets posted to my wall on FB. Perhaps I'm not waiting long enough? How long should I need to wait before it shows up?

© Stack Overflow or respective owner

Related posts about android

Related posts about facebook