0
我正在將facebook SDK 3.0升級到3.2。我通過Facebook SDK 3.2完成了Facebook登錄,並且工作正常。我想執行fql來獲取用戶的相冊。以下代碼適用於獲取Facebook照片,但不適用於相冊,因爲用戶有權限。我對如何設置facebook sdk 3.2的「user_photos」權限感到震驚。有什麼建議麼?提前致謝。如何設置ios facebook sdk的用戶權限3.2
NSString *query =
@"SELECT pid, src_small, src_big, src FROM photo WHERE aid IN "
@"SELECT aid FROM album WHERE owner = me() ORDER BY created DESC LIMIT 50";
NSDictionary *queryParam =
[NSDictionary dictionaryWithObjectsAndKeys:query, @"q", nil];
[FBRequestConnection startWithGraphPath:@"/fql"
parameters:queryParam
HTTPMethod:@"GET"
completionHandler:^(FBRequestConnection *connection,
id result,
NSError *error) {
if (error) {
NSLog(@"Error: %@", [error localizedDescription]);
} else {
NSLog(@"Result: %@", result);
}
}];