は、グラフAPIでバッチリクエストを実行するためのオプションがある:1つのバッチリクエスト50回の動作電流制限がある
curl \
-F 'access_token=…' \
-F 'batch=[ \
{"method": "GET", "relative_url": "me"}, \
{"method": "GET", "relative_url": "me/friends?limit=50"} \
]'\
https://graph.facebook.com
留意されたいです。 (facebook
は、自分のFacebookのインスタンスである場合)のFacebookのiOS SDKの
実装は次のように多少なります
NSString *req01 = @"{ \"method\": \"GET\", \"relative_url\": \"me\" }";
NSString *req02 = @"{ \"method\": \"GET\", \"relative_url\": \"me/friends?limit=50\" }";
NSString *allRequests = [NSString stringWithFormat:@"[ %@, %@ ]", req01, req02];
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObject:allRequests forKey:@"batch"];
[facebook requestWithGraphPath:@"me" andParams:params andHttpMethod:@"POST" andDelegate:self];
雅は私がObjective-Cの – JoshDG
でそれを実装しようとしているあなたには、いくつかの作業していることを見ましたフレームワーク? – MByD
iOS Facebook APIを使用したCocoa/Cocoa-Touch .. http://developers.facebook.com/docs/reference/iossdk/ – JoshDG