facebook 그래프 API를 사용하여 애플리케이션을 설치 한 친구들을 가져올 수 있습니다.
########### // 최신 편집 // 여기에
당신은 갈 당신이 정말로 //
`[FBSession openActiveSessionWithReadPermissions:@[@"public_profile"]
allowLoginUI:YES
completionHandler:
^(FBSession *session, FBSessionState state, NSError *error) {
if(!error && state == FBSessionStateOpen)
{
[FBSettings enablePlatformCompatibility: YES];
{
[FBRequestConnection startWithGraphPath:@"me/friends" parameters:[NSMutableDictionary dictionaryWithObjectsAndKeys:@"id,name,first_name,last_name,email,picture.type(large)",@"fields",nil] HTTPMethod:@"GET" completionHandler:^(FBRequestConnection *connection, id result, NSError *error)
{
//[self request:FBRequest didLoad:result];
NSArray* friends = [result objectForKey:@"data"];
//@"data" contains all your friends who installed the application
NSLog(@"------>%@", friends);
arrayFbIDS =[friends valueForKey:@"id"];
를 가져 원하는
가
// 먼저 사용 권한을
// 더 많은 세부 정보를 추가 시겠어요 "ID"문자열
`
@의 페이스 북 ID를 꺼내? –