Android, How to fit message in Facebook dialog?

只谈情不闲聊 提交于 2019-12-12 06:36:49

问题


After two days of searching finally I could integrate Facebook SDK into my application. My problem is when I set bundle and show dialog interface, some parts of lines are out of screen. This is my code:

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

I put message in description but result is same. How to fit message inside dialog?

来源:https://stackoverflow.com/questions/12453347/android-how-to-fit-message-in-facebook-dialog

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!