rbaumbach / instagramsimpleoauth Goto Github PK
View Code? Open in Web Editor NEWA quick and simple way to authenticate an Instagram user in your iPhone or iPad app.
License: MIT License
A quick and simple way to authenticate an Instagram user in your iPhone or iPad app.
License: MIT License
How can I check if the user already granted Instagram permission?
Thanks!
hi, we’re exploring to replace the old Google oAuth 2.0 iOS libs and this looks great, nice one.
However, your InstagramLoginResponse completion block wouldn’t fire for us, and looking into it I noticed that our authcallback URL was fully qualified i.e. domain.com/services/authcallback.html instead of say domain.com/callback/ — suppose both are valid callbacks.
So we had to remove the / prefix from the InstagramAuthCodeParam constant in InstagramLoginUtils.
*NSString const InstagramAuthCodeParam = @"?code="; // /?code=
Hope this helps someone
When the user login once , the code does not allows to re-login with another account, after the user on clicking the button again.
The view controller is pushed and if user has already logged in then VC is popped and user cant change his account.
Hi,
I'm not sure if this is bug of your library of just a lack of documentation but when I try to present InstagramSimpleOAuthViewController it shows spinner and after few moments callback block gets called with given error:
Error Domain=NSURLErrorDomain Code=-999 "(null)" UserInfo={NSErrorFailingURLStringKey=https://staticxx.facebook.com/connect/xd_arbiter/r/xaOI6zd9HW9.js?version=42#cb=f117246175298ac&domain=www.instagram.com&origin=https%3A%2F%2Fwww.instagram.com%2Ff325e717a66a4d4&relation=parent&error=unknown_user, NSErrorFailingURLKey=https://staticxx.facebook.com/connect/xd_arbiter/r/xaOI6zd9HW9.js?version=42#cb=f117246175298ac&domain=www.instagram.com&origin=https%3A%2F%2Fwww.instagram.com%2Ff325e717a66a4d4&relation=parent&error=unknown_user})
I'm sure that cliendID, clientSecret and callbackURL are correct.
So the entire auth is cookie-based but cookies get (sometimes) set at weird times. It appears a cookie will be set once the user has been authenticated (after a few seconds).
Wondering, what would be best approach to implement a sign-out; basically to reset the InstagramSimpleOAuthViewController to allow different credentials?
Clear the cookies?? i.e. something like:
-(IBAction) signOut:(id)sender{
NSHTTPCookie *cookie;
NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
for (cookie in [storage cookies]){
[storage deleteCookie:cookie];
}
[[NSUserDefaults standardUserDefaults] synchronize];
[self loginController]; // show clean auth view
}
Hi, I'm using the InstagramSimpleOAuthViewController to login the user into my app, but the library crashes on the method
- (instancetype)initWithInstagramOAuthResponse:(NSDictionary *)response
in the class InstagramLoginResponse
with the error
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[InstagramUser initWithDictionary:]: unrecognized selector sent to instance
I'm using the InstagramSimpleOAuthViewController as-is in your explanations with SDK 8.1
What's wrong?
Thanks
\m
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.