下面的代码似乎只发布“消息”,没有别的。有什么我想念的吗?(使用 Facebook Android SDK)
parameters.putString("link", link);
parameters.putString("description", description);
parameters.putString("caption", caption);
parameters.putString("name", name);
parameters.putString("message", msg);
try {
String response = mFacebook.request("me/feed", parameters, "POST");
} catch (IOException e) {
Log.e("Error", e.toString());
}
我收到很多警告,但读过这是正常的(另外,我收到了“消息”的警告,但仍然发布:
Key caption expected byte[] but value was a java.lang.String. The default value <null> was returned.
Attempt to cast generated internal exception:
java.lang.ClassCastException: java.lang.String