Skip to content

Commit

Permalink
Remove the refresh code for now
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeredpath committed Jun 1, 2010
1 parent a31fce3 commit 4156fdf
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions Classes/LROAuth2DemoViewController.m
Expand Up @@ -42,7 +42,7 @@ - (void)viewDidAppear:(BOOL)animated
// try and load an existing access token from disk
self.accessToken = [NSKeyedUnarchiver unarchiveObjectWithFile:AccessTokenSavePath()];

// check if we have a valid access token before continuing otherwise obtain/refresh a token
// check if we have a valid access token before continuing otherwise obtain a token
if (self.accessToken == nil) {
[self beginAuthorization];
} else {
Expand Down Expand Up @@ -89,14 +89,6 @@ - (void)beginAuthorization;
[oauthController release];
}

- (void)refreshAccessToken;
{
if (oauthController == nil) {
oauthController = [[OAuthRequestController alloc] init];
}
[oauthController refreshAccessToken:self.accessToken];
}

- (void)loadFacebookFriends;
{
NSString *URLString = [NSString stringWithFormat:@"https://graph.facebook.com/me/friends?access_token=%@", [self.accessToken.accessToken stringByEscapingForURLQuery]];
Expand All @@ -106,6 +98,9 @@ - (void)loadFacebookFriends;
[NSURLConnection connectionWithRequest:request delegate:self];
}

#pragma mark -
#pragma mark NSURLConnection methods

- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
{
[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
Expand Down

0 comments on commit 4156fdf

Please sign in to comment.