0

经过两天的搜索,我终于可以将 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但结果是一样的。如何在对话框中放置消息? 在此处输入图像描述

4

0 回答 0