0

ユーザーの友達が投稿・公開したステータスデータを取得したい。次のコードを書きましたが、ユーザー自身のステータス更新のみを取得します。誰かが私のコードの何が問題なのか教えてくれませんか? ありがとう!

NSString *fql = [NSString stringWithFormat:@"select uid,message from status where uid in (select uid2 from friend where uid1=%lld) order by time desc ", uid];

NSDictionary *params = [NSDictionary dictionaryWithObject:fql forKey:@"query"];
[[FBRequest requestWithDelegate:self] call:@"facebook.Status.get" params:params];  
4

1 に答える 1

1

直接クエリを実行しているため、「facebook.fql.query」を使用するように呼び出しを変更する必要があります。

最近の 20 人の友達の更新を取得するためのコードは次のとおりです。

NSString* fql = [NSString stringWithFormat:
                 @"SELECT uid, pic_square, name, status FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = %lld) AND status.time > 0 ORDER BY status.time DESC LIMIT 20", fbSession.uid];

NSDictionary* params = [NSDictionary dictionaryWithObject:fql forKey:@"query"];
last20FriendsStatusRequest = [FBRequest requestWithDelegate:self];
[last20FriendsStatusRequest call:@"facebook.fql.query" params:params];

よろしくお願いします、

于 2010-02-02T23:49:29.340 に答える