小编Nin*_*hah的帖子

iOS FBRequestConnection startForMyFriendsWithCompletionHandler获取完整的好友列表

我们如何获得目前正在使用的完整朋友列表

[FBRequestConnection startForMyFriendsWithCompletionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
    if (!error) {
    // Do stuff
    } else {
     // Throw error
    }
Run Code Online (Sandbox Code Playgroud)

在响应中,我们得到一个分页和下一个url.有谁知道我们如何循环下一个网址并获得完整的朋友列表?

    Response has 
 paging =     {
        next = "https://graph.facebook.com/1301xxxxxx/friends?fields=id,name,username,first_name,last_name&format=json&access_token=BAAFjJBl9zZBABALFxcbix0aNe0NFOfW8mHCU4ntPaxwooYVo1L6fOWgNTMTZBqLHfxjrWBOXNLjcCwEbkBgZAJX22Ec9PlatgHP9GfjVEWyxk0qGtxxxxxxxxxx&limit=5000&offset=5000&__after_id=10000xxxxxx";
};
Run Code Online (Sandbox Code Playgroud)

提前致谢

facebook ios

6
推荐指数
1
解决办法
706
查看次数

标签 统计

facebook ×1

ios ×1