大家好,我发现这是有效的.
Bundle parameters = new Bundle();
parameters.putString("message", "This is a test message.");
mFacebook.request("me/feed", parameters, "POST");
Run Code Online (Sandbox Code Playgroud)
这是完整的代码.
Facebook mFacebook = new Facebook(FACEBOOK_APP_ID);
SessionStore.restore(mFacebook, mContext);
try {
TextView post_edit = (TextView)findViewById(R.id.post_edit);
String message = String.valueOf(post_edit.getText());
Bundle parameters = new Bundle();
parameters.putString("message", message);
mFacebook.request("me/feed", parameters, "POST");
} catch (Exception e) {
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4191 次 |
| 最近记录: |