Easy Objective-C framework to show an instagram feed, initially only shows the pictures and the videos preview(picture).
if you need this working with AFNetworking v1.x use version 1.3
if you don't setup an access token or the existing one expire, this framework request a new one with the login view.
-
You need add the AVFoundation.framework to your project
-
to initialize and setup add the following code.
//init controller
SBInstagramController *instagram = [SBInstagramController instagram];
//setting up, data were taken from instagram app setting (www.instagram.com/developer)
instagram.instagramRedirectUri = @"https://www.santiagobustamante.info";
instagram.instagramClientSecret = @"dd9f687e1ffb4ff48ebc77188a14d283";
instagram.instagramClientId = @"436eb0b4692245c899091391eaa5cdf1";
instagram.instagramDefaultAccessToken = @"6874212.436eb0b.9768fd326f9b423eab7dd260972ee6db";
instagram.instagramUserId = @"6874212"; //if you want request the feed of one user
//both are optional, but if you need search by tag you need set both
instagram.isSearchByTag = YES; //if you want serach by tag
instagram.searchTag = @"colombia"; //search by tag query
instagram.showOnePicturePerRow = YES; //to change way to show the feed, one picture per row(default = NO)
instagram.showSwitchModeView = YES; //show a segment controller with view option (default = NO)
instagram.loadingImageName = @"SBInstagramLoading"; //config a custom loading image
instagram.videoPlayImageName = @"SBInsta_play"; //config a custom video play image
instagram.videoPauseImageName = @"SBInsta_pause"; //config a custom video pause image
instagram.playStandardResolution = YES; //if you want play a standard resuluton, low resolution per default
[instagram refreshCollection]; //refresh instagram feed
//push instagram view controller into navigation
[self.navigationController pushViewController:instagram.feed animated:YES];
===========
- this framework needs the AFNetworking v2.x
- this framework support iOS 6 and above
- this is a Xcode 5 project (Xcode 6 compatibility)
- iOS8 compatibility
- examples with and without storyboard
v2.0.0
- Play videos inline in the feed and in the pic detail
- Another option to setup
- Images customized
v1.4.1
- create a method to refresh the instragram feed
v1.4
- upgrade AFNetworking framework, now use AFNetworking v2.x
- username and user picture in the image detail view
v1.3
- add new way to show the feed, one picture per row
v1.2
- add support for search by tag
- new way to init the instagram view controller
v1.1
- load all instagram photos per demand (lazy loading)
- add a loading animation
- add caption field in the picture detail
- remove PSTCollectionView framework (remove iOS 5 support)
v1.0
- first version