这是我的代码:
FBRequest *request = [FBRequest requestForMyFriends];
[request startWithCompletionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
}];
这是响应,数据中只有一个FBUser
但有pagingField
,我应该如何获得下一页?
{
data = (
{
"first_name" = Joe;
id = 1410250212552901;
"last_name" = Sadanwitz;
name = "Joe Amgjchjgcigg Sadanwitz";
}
);
paging = {
next = "https://graph.facebook.com/v2.0/1410250212552901/friends?fields=id,name,first_name,last_name&format=json&access_token=CAAEY8AAUoPcBAExJCteA2ZBZBcqeQnkDBLBhQy2T1ghNofZAU5wT0KinVAXyjeDBOlzrRl3ZBCTAbmyHqrjU4f6JKJrBZCSECZBvvLcoDUJshY5NnZCxZBHkZBCKgWUzVyJAZAQUGoaEffcjokL28wN0Xpn8FuNs5drHpe2BTrCJsCMHpU7x85N2V86qVT1Pnx85xC1ffhoG6tRvzpTBdz9vi1shb5SUeqtlinAofI7lU52AZDZD&limit=5000&offset=5000&__after_id=enc_AexOP9huSQ39Ccrt9AIumeBtqGnFH8RnliwvpPwisb4b9dH46LFTaVWVp1c-lYoncilrxvDQ2XFY7KK7o642UiF_";
};
summary = {
"total_count" = 9;
};
}
答案 0 :(得分:1)
没办法。
App好友:/ me / friends端点不再包含完整列表 一个人的朋友。相反,它现在返回该列表 也正在使用你的应用程序的人的朋友。
答案 1 :(得分:0)
如果你用这段代码编写游戏,你可以要求邀请朋友
[FBRequestConnection startWithGraphPath:@"/me/invitable_friends"
parameters:nil
HTTPMethod:@"GET"
completionHandler:^(
FBRequestConnection *connection,
id result,
NSError *error
) {
/* handle the result */
}];
https://developers.facebook.com/docs/games/invitable-friends/v2.2