2010-09-18 59 views
1
- (void)getFacebookProfile { 
    NSString *urlString = [NSString stringWithFormat:@"https://graph.facebook.com/me?access_token=%@", [_accessToken stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; 
    NSURL *url = [NSURL URLWithString:urlString]; 
    ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; 
    [request setDidFinishSelector:@selector(getFacebookProfileFinished:)]; 

    [request setDelegate:self]; 
    [request startAsynchronous]; 
} 

上述方法(從www.raywenderlich.com)失敗,錯誤如下:ASIHTTPRequest構建/鏈路錯誤

未定義符號:

"_OBJC_CLASS_$_ASIHTTPRequest", referenced from: objc-class-ref-to-ASIHTTPRequest in FBFunViewController.o ld: symbol(s) not found collect2: ld returned 1 exit status

什麼問題?有人可以幫忙嗎?

回答