iosios7instagramtabbed

Is There a Way to Display a Specific User's Instagram Feed?


I'm creating a tabbed iOS application. I need one of the tabbed pages to only show the IG feed of a specific user (not the user who logs in). How do I go about doing so?

Edited: Ok, now I've registered my app via the IG Developer page, and I've gotten my client id. Now I need the user's profile to load up in my web view.

Here is my code in my InstaViewController.m file:

- (void)viewDidLoad
{
    [super viewDidLoad];

    UIActivityIndicatorView *activityView=[[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];

    activityView.center=self.view.center;

    [activityView startAnimating];

    [self.view addSubview:activityView];
    // Do any additional setup after loading the view.
    NSURL *instagramURL = [NSURL URLWithString:@"instagram://user?username=MAMA_MIA"];

    if ([[UIApplication sharedApplication] canOpenURL:instagramURL]) {
        [[UIApplication sharedApplication] openURL:instagramURL];

}

  }

Solution

  • Using the following URI from the Instagram API, you can get any users feed if you know their user ID.

    https://api.instagram.com/v1/users/{USER_ID}/media/recent/?client_id={CLIENT_ID}