6
我們怎樣才能得到朋友的完整列表完整列表,目前我使用的iOS FBRequestConnection startForMyFriendsWithCompletionHandler讓朋友
[FBRequestConnection startForMyFriendsWithCompletionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
if (!error) {
// Do stuff
} else {
// Throw error
}
在響應中,我們得到了一個分頁和下一個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";
};
在此先感謝
此外這可能會有所幫助http:// stackoverflow.com/questions/4812941/how-to-move-to-the-next-page-in-facebook-json-response-using-ios-sdk –