5
也許一個簡單的問題,但我似乎無法得到它。我想獲取用戶個人資料圖片,但也希望搜索他/她的帖子。就像這樣:Multiple requestWithGraphPath Facebook iOS
[facebook requestWithGraphPath:@"me/picture?type=large" andDelegate:self];
[facebook requestWithGraphPath:@"me/home?q=TEST" andDelegate:self];
我可以得到picute了用下面的代碼:
- (void)request:(FBRequest*)request didLoad:(id)result{
if ([result isKindOfClass:[NSData class]])
{
UIImage *image = [[UIImage alloc] initWithData:result];
UIImageView *profilePicture = [[UIImageView alloc] initWithImage:image];
[image release];
profilePicture.frame = CGRectMake(20, 20, 80, 80);
[self.view addSubview:profilePicture];
[profilePicture release];
}
}
但我不知道我能得到的搜索查詢數據出來。
任何幫助將是偉大的! Thnx
聽起來合乎邏輯,怎麼會有這樣的事情是什麼樣子? Thnx – Jos
@Jos我更新了答案 – albertamg
好的! thnx男人,這是要走的路! – Jos