- 
                Notifications
    
You must be signed in to change notification settings  - Fork 132
 
The Instagram provider authenticates the user via a web view. It requires client_id and SimpleAuthRedirectURIKey to be present. Install by adding pod 'SimpleAuth/Instagram to your Podfile. Its provider type is instagram.
Instagram does not respect redirect URIs passed at runtime, so you must provide SimpleAuth with the redirect URI that you provided on http://instagram.com/developer/.
This provider shows a web view controller by passing it to the block specified by SimpleAuthPresentInterfaceBlockKey. By default, this block wraps the given view controller in a UINavigationController and presents that controller on the topmost presented view controller. Likewise, the controller is dismissed by passing it to the block specified by SimpleAuthDismissInterfaceBlockKey. You can read more about this in Customizing Interface Elements.
SimpleAuth.configuration[@"instagram"] = @{
    @"client_id" : @"CLIENT_ID",
    SimpleAuthRedirectURIKey : @"https://mysite.com/auth/instagram/callback"
};
[SimpleAuth authorize:@"instagram" completion:^(id responseObject, NSError *error) {}];