Comments (8)
There is no longer a scope, it seems that the demo version of InstagramKit is a bit behind. There is the loginWithBlock: method which opens safari for login, but that I found by looking through the header files.
There is a definite need for documentation for implementation of the wrapper.
from instagramkit.
You can integrate the login into a web view (as per the demo app), but follow the URL structure of the method I mentioned above in the latest version of IK. Check out InstagramEngine.h/m for examples.
Be sure to register a custom URL type for your app, and set the redirect URL in your developer client and your app plist so that the redirect will redirect back to your application.
You'll also need to add the application:openURL:sourceApplication:annotation
method to your application delegate.
Wherever you need to login or access photos, use something along the lines of this
if(![[NSUserDefaults standardUserDefaults] boolForKey:@"LYTInstagramAPIAuthenticated"]){
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"LYTInstagramAPIAuthenticated"];
[[InstagramEngine sharedEngine] loginWithBlock:^(NSError *error) {
// We got an error, reset the userDefaults to request authorization again.
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"LYTInstagramAPIAuthenticated"];
}];
}else{
APCLog(@"Load images");
}
from instagramkit.
Hi,
Can you please Let me know the code (exact) for Application delegate method;
from instagramkit.
Look at the app delegate in the demo app. At the very bottom.
On Saturday, October 11, 2014, Alok [email protected] wrote:
Hi,
Can you please Let me know the code (exact) for Application delegate
method;—
Reply to this email directly or view it on GitHub
#66 (comment)
.
from instagramkit.
Thanks for you response.
I have one more issue after login "safari cannot open the page because the address in invalid"
my redirect url is sdtde128f5298954741870634b65fdbc110://authorize
Resgards
Alok
from instagramkit.
Your redirect url should be what you set in your info.plist file. I use a
prefix of the app name, so register "app" as the URL and then in your
Instagram settings "app://" and that will open the application after auth.
On Saturday, October 11, 2014, Alok [email protected] wrote:
Thanks for you response.
I have one more issue after login "safari cannot open the page because the
address in invalid"my redirect url is sdtde128f5298954741870634b65fdbc110://authorize
Resgards
Alok—
Reply to this email directly or view it on GitHub
#66 (comment)
.
from instagramkit.
It shows me an error, code :403 and eeror type: Oauthforbiddenexception, error message: implicit authentication is disabled
from instagramkit.
@Raja413 If you don't use a server component, you need to enable implicit authentication at the Manage clients dashboard.
More information about this can be found at https://instagram.com/developer/authentication/. In particular, the section about Client-Side (Implicit) Authentication.
from instagramkit.
Related Issues (20)
- Followers list always returns a 0-element array
- Version? HOT 3
- Deprecated methods HOT 2
- Need fix InstagramUser.m HOT 3
- Need for api endpoint for IGTV
- Objective-C for Swift HOT 1
- Instagram getSelfUserDetails bad request 400 eventhough session is valid HOT 2
- My app with istagramkit is opened when I click on another app
- duplicate symbol _kLocation
- UIwebview depecrated HOT 1
- How can I get the 10 most popular user publications in a certain time?
- Instagram Display API HOT 1
- [question] instagram fingerprint
- Login Flow issue
- you are not a sand box user error
- Yehe
- Hi HOT 1
- My work
- https://github.com/eggyo HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instagramkit.