0
這是我的舊代碼登錄到Twitter的:如何登錄到Twitter發佈1.1
NSURL *url = [NSURL URLWithString:@"http://api.twitter.com/1/account/verify_credentials.json"];
TWRequest *req = [[TWRequest alloc] initWithURL:url
parameters:nil
requestMethod:TWRequestMethodGET];
// Important: attach the user's Twitter ACAccount object to the request
req.account = self.acAcount;
_strFullName=nil;
self.strUsername =nil;
[req performRequestWithHandler:^(NSData *responseData,
NSHTTPURLResponse *urlResponse,
NSError *error) {
// If there was an error making the request, display a message to the user
它不再起作用。
我得到了這個迴應。
那麼應該如何修改代碼呢?
你能後的反應如何?我沒有看到你的問題。 –