我已经在may应用程序中显示facebook feeds(post)列表。我正在使用Facebook 4.0我能够获取配置文件,但无法获取我的所有提要(文章)。如果有人有任何参考,那么请告诉我。谢谢。如何获得Facebook的饲料(后)使用Facebook的SDK 4.0在Android?
右键我现在用下面的代码获得饲料,但越来越像{“数据”:[]}空白响应
FacebookCallback<LoginResult> facebookCallback = new FacebookCallback<LoginResult>() {
@Override
public void onSuccess(LoginResult loginResult) {
new GraphRequest(
AccessToken.getCurrentAccessToken(),
loginResult.getAccessToken().getUserId()+"/feed/",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
Log.i("fb", "Feeds :" +response.getJSONObject());
Toast.makeText(
getApplicationContext(),
response.getJSONObject()
+ "",
Toast.LENGTH_SHORT).show();
}
}
).executeAsync();
}
这样,我们就可以实现职位的相关图片吗? 'Bundle params = new Bundle(); params.putString(“fields”,“message,created_time,id,full_picture,status_type,source,comments.summary(true),likes.summary(true)”); params.putString(“limit”,“10”);' –