是否可以使用 facebook android SDK 以“-感到兴奋、阅读、观看”等方式将帖子发布到用户的墙上?我在文档中搜索,但没有找到任何方法。
我以这种方式发布状态:
mFacebookCallback = new FacebookCallback<LoginResult>() {
@Override
public void onSuccess(LoginResult loginResult) {
Toast.makeText(mContext, "in LoginResult on success", Toast.LENGTH_LONG).show();
/* make the photo share call */
Bundle postParams = new Bundle();
postParams.putString("name", "test data");
new GraphRequest( AccessToken.getCurrentAccessToken(),
"/me/photos", //photos
postParams,
HttpMethod.POST,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
Toast.makeText(getApplicationContext(), "Successfully share post", Toast.LENGTH_SHORT).show();
}
}
).executeAsync();
}
};
有人知道方法吗?