Làm sao chúng ta có thể nhận được danh sách đầy đủ của bạn bè, hiện tại tôi đang sử dụngiOS FBRequestConnection startForMyFriendsWithCompletionHandler nhận được danh sách đầy đủ của bạn bè
[FBRequestConnection startForMyFriendsWithCompletionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
if (!error) {
// Do stuff
} else {
// Throw error
}
Trong phản ứng, chúng ta có được một phân trang và url tới. Có ai biết làm thế nào chúng ta có thể lặp qua các url tiếp theo và nhận được danh sách đầy đủ của bạn bè?
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";
};
Cảm ơn trước
Ngoài ra điều này có thể hữu ích http: // stackoverflow.com/questions/4812941/how-to-move-to-the-next-page-in-facebook-json-response-using-ios-sdk –