4

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;
    }

}
Rocker
  • 669
  • 5
  • 15

2 Answers2

7

Check all the below post : I explained how to Post on User wall:

Post on User's Facebook Wall

Post to user Wall with Description,title,caption and link

Post on Wall..

Community
  • 1
  • 1
Venky
  • 11,049
  • 5
  • 49
  • 66
  • @Rocker Are you clarified with Twitter Call back?? – Venky Oct 17 '11 at 13:55
  • one more thing when I am trying your code with AsyncTask the same issue arises again that status get posted but no text is displayed. – Rocker Oct 17 '11 at 18:08
0

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

josephus
  • 8,284
  • 1
  • 37
  • 57