Git Product home page Git Product logo

Comments (8)

byronrode avatar byronrode commented on May 24, 2024

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.

byronrode avatar byronrode commented on May 24, 2024

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.

buddyhut avatar buddyhut commented on May 24, 2024

Hi,
Can you please Let me know the code (exact) for Application delegate method;

from instagramkit.

byronrode avatar byronrode commented on May 24, 2024

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.

buddyhut avatar buddyhut commented on May 24, 2024

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.

byronrode avatar byronrode commented on May 24, 2024

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.

Raja413 avatar Raja413 commented on May 24, 2024

It shows me an error, code :403 and eeror type: Oauthforbiddenexception, error message: implicit authentication is disabled

from instagramkit.

MPieter avatar MPieter commented on May 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.