当前位置: 动力学知识库 > 问答 > 编程问答 >

iphone - FQL for getting facebook user ids does not return "paging" key in response

问题描述:

Hi i want to get list of my fabebook friend ids with paging of 100 users.

The problem is that if i set hte FQL to

 NSString *fqlString = @"SELECT uid FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) LIMIT 300";

It returns me as expected the only first 300 users in the table with out any reference to next page.

Result: {

data = (

{

uid = 1519xxx;

},

{

uid = 9806xxx;

}

....

);

}

if i request friends with [FBRequest requestForMyFriends] it returns me all of my friends and additionaly a paging key with the url object for next page.

The question is how can i tell with FQL to give me lists of 100 users with paging to next 100 users.

网友答案:

The Graph API returns paging links; FQL does not. So you’d have to do that yourself, by making another query including an OFFSET parameter.

分享给朋友:
您可能感兴趣的文章:
随机阅读: