经过两天的搜索,我终于可以将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
但结果相同。如何在对话框中输入消息?