2012-08-28 41 views

回答

1

試試下面的函數來獲得你的Facebook信息(用戶信息登錄)

- (void)fetchUserDetails { 
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: 
           @"SELECT uid, name, pic FROM user WHERE uid=me()", @"query",nil]; 

[fb requestWithMethodName:@"fql.query" 
           andParams:params 
          andHttpMethod:@"POST" 
           andDelegate:self];} 

希望這有助於

+0

你能在簽名中添加代碼?我遇到了問題... – k06a

+0

從[here](https://github.com/facebook/facebook-ios-sdk)下載facebook iOS SDK並從[here](https:// developers。 facebook.com/docs/howtos/login-with-facebook-using-ios-sdk/) –

+0

我根本不想使用SDK。 – k06a

相關問題