facebook状态更新

时间:2011-10-17 13:20:17

标签: android facebook

我在facebook上更新状态时遇到问题。我正在使用Facebook sdk,问题是我的状态是发布但没有显示文本。这是我的代码---->

公共类NetRockersUpdate扩展了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 个答案:

答案 0 :(得分:7)

检查以下所有帖子:我解释了如何在用户墙上发布:

Post on User's Facebook Wall

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

Post on Wall ..

答案 1 :(得分:0)

您的参数中没有“消息”键。