2011-08-02 12 views
1

私はFacebookのAPIで働いていますし、次の行は、私に問題を引き起こしている:FacebookのAPI requestWithGraph doesntの仕事

[facebook requestWithGraphPath:(@"%@/friends",[tmpFriendID objectAtIndex:i]) andDelegate:self]; 

私はcontact- /友人の-IDに一定の接触ので、イム通過の友人にアクセスする必要がありますが、どういうわけか、それはちょうどIDで送信するので、友人を取得していないimをresoultで、しかし連絡先プロファイル。

何が間違っていますか? friendlist得るために

答えて

0

削除近いparanthesis

変更この

[facebook requestWithGraphPath:@"%@/friends",[tmpFriendID objectAtIndex:i]) andDelegate:self]; 

[facebook requestWithGraphPath:[NSString stringWithFormat:@"%@/friends",[tmpFriendID objectAtIndex:i]] andDelegate:self]; 

OR

[facebook requestWithGraphPath:[NSString stringWithFormat:@"%i/friends",[tmpFriendID objectAtIndex:i]] andDelegate:self]; 

はまた私の答えを参照してください

Retrieve Facebook friends list

+0

トリック – kikovi

+1

は、私はAppleがトリックをやっていないですんでした、ありがとうございました –

関連する問題