Android,如何在Facebook对话框中显示消息?

时间:2012-09-17 05:03:06

标签: android facebook dialog screen

经过两天的搜索,我终于可以将Facebook SDK集成到我的应用程序中。我的问题是当我设置包和显示对话框界面时,线的某些部分是在屏幕外。这是我的代码:

        private void postFacebookMessage() {
            Log.i(TAG, "Try to post message");

            token = mFacebook.getAccessToken();
            Log.i("token", "" + token);

            Bundle parameters = new Bundle();
            parameters.putString("access_token", token);
            parameters.putString("message", "This is test message.");
            parameters.putString("name", "Chef Astro");
            parameters.putString("link", "http://www.astrogempak.com.my");
            parameters.putString("caption", message);
            parameters.putString("description", "");
            parameters.putString("picture","http://a1.mzstatic.com/us/r30/Purple/v4/2d/7d/c3/2d7dc3ed-9e32-cd7b-adba-2a31637a8cf0/mzl.toeyydsk.175x175-75.jpg");

    //      mAsyncRunner.request("me/feed", parameters, "POST", new WallPostRequestListener(), null); 
            mFacebook.dialog(FacebookActivity.this, "feed", parameters, new SampleDialogListener());
    }

我将message放入description但结果相同。如何在对话框中输入消息? enter image description here

0 个答案:

没有答案