4
votes

I am having problem in updating status on facebook. I am using Facebook sdk, the problem is that my status is getting post but not showing text. Here is my code ---->

public class NetRockersUpdate extends AsyncTask{

    @Override
    protected String doInBackground(String... msg) {
        // TODO Auto-generated method stub
         nra = (NetRockersApp)getApplication();
        String result = "Status Posted Successfully";
        Bundle parameters = new Bundle();
        parameters.putString("test", msg[0]);
        parameters.putString("method", "stream.publish");
        try {
             nra.facebook.request(parameters);
        } catch (FileNotFoundException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (MalformedURLException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return result;
    }

}
2

2 Answers

7
votes
0
votes

you don't have a "message" key in your parameter.