1
我正在嘗試在iPhone應用中獲取任何facebook用戶的相冊。 這裏是FQL查詢,我使用從IOS應用中獲取臉書相冊
NSString *query = [NSString stringWithFormat:@"SELECT aid,object_id,owner FROM album WHERE owner=%d",fid];
其中FID是存儲在一個int變量
結果我得到一個有效的Facebook UID是NSArray
類0計數
我是什麼做錯了?
繼什麼建議在第一個答案我現在想的圖形API是這樣的:
query = [NSString stringWithFormat:@"/%d/albums",fid];
[_facebook requestWithGraphPath:query andDelegate:self];
這一次的結果是NSDictionary
與「數據」鍵返回空NSArray
。 三節過後反正有時候我嘗試檢索專輯列出這樣我也得到我在控制檯打印出來(均高於錯誤描述當地的)錯誤:
localized error : The operation couldn’t be completed. (facebookErrDomain error 10000.)
rror : Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x18b5b0 {error=<CFBasicHash 0x176050 [0x3e2169fc]>{type = mutable dict, count = 2,
entries =>
2 : <CFString 0x18ccc0 [0x3e2169fc]>{contents = "type"} = <CFString 0x18c990 [0x3e2169fc]>{contents = "OAuthException"}
3 : <CFString 0x190a90 [0x3e2169fc]>{contents = "message"} = <CFString 0x18c0d0 [0x3e2169fc]>{contents = "(#803) Some of the aliases you requested do not exist: 2147483647"}
}
}
任何想法?
謝謝你的回答。我更新了我的問題 – Sindico