1
-(void) viewDidLoad
{
NSString *strMethod=[NSString stringWithFormat:@"media/popular?access_token=%@",appDelObj.instagram.accessToken];
[appDelObj.instagram requestWithMethodName:strMethod params:nil httpMethod:@"GET" delegate:self];
}
-(IGRequest*)requestWithMethodName:(NSString*)methodName
params:(NSMutableDictionary*)params
httpMethod:(NSString*)httpMethod
delegate:(id<IGRequestDelegate>)delegate {
NSString * fullURL = [kRestserverBaseURL stringByAppendingString:methodName];
return [self openUrl:fullURL
params:params
httpMethod:httpMethod
delegate:delegate];
}