2011-07-26 31 views

回答

1

Facebook.m您需要更改下面的代碼:

- (void)authorize:(NSArray *)permissions 
     delegate:(id<FBSessionDelegate>)delegate { 

    [_permissions release]; 
    _permissions = [permissions retain]; 

    _sessionDelegate = delegate; 

    /* safariAuth should be NO */ 
    [self authorizeWithFBAppAuth:NO safariAuth:NO]; 

    /* 
     authorizeWithFBAppAuth: will launch the Facebook App 
     safariAuth: will launch Mobile Safari 

     When both of these are set to NO, the Facebook Login 
     Dialog will appear inside of your app. 
    */ 
} 
+0

完美!謝謝您的回答。 –

相關問題