2010-07-14 3 views

답변

0

예, 가능합니다. 내가 FacebookHelper라는 클래스가

: 그것은 내가 할 방법 당신이 다음 loginByShowingDialog를 호출 페이스 북 도우미의 인스턴스를 초기화하기,

- (id)init { 
    if (self = [super init]) { 
     session_ = [[FBSession sessionForApplication:kAPIKey secret:kApplicationSecret delegate:self] retain]; 
     [session_ resume];  
    } 
    return self; 
} 

- (void)loginByShowingDialog { 
    self.isDialogShown = YES; 
    FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:self.session] autorelease]; 
    dialog.delegate = self; 
    [dialog show]; 
} 

먼저, 그 다음 모든 것이 대표에게

+0

감사를 처리하여 작동합니다. 이것을 시도해 볼 것입니다. – lostInTransit

관련 문제