Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication fails #2

Open
romaopedro opened this issue Dec 11, 2014 · 0 comments
Open

Authentication fails #2

romaopedro opened this issue Dec 11, 2014 · 0 comments

Comments

@romaopedro
Copy link

I can't logged in Instagram with this api. First I have to put my public and secret key as callback url as well. After that, all code should run perfectly, but in InstagramAuthenticatorView in line 73 you have your callback url hardcoded and not from Defines.h.

NSString *url = [NSString stringWithFormat:@"https://api.instagram.com/oauth/authorize/?client_id=%@&display=touch&%@&redirect_uri=http://buza.mitplw.com&response_type=code", INSTAGRAM_CLIENT_ID, scopeStr];

But after, the demo never called the access_token request. In line 96 of InstagramAuthenticatorView I had to change to if([[request.URL absoluteString] hasPrefix:@"my_url?code="]).

Now he get in the "if" but the instagram sent an wrong response, something like "wrong code".

I used your encode code to create the request because I had problems setting the HTTPBody and I copied from you and works fine. Thank you :D

Your code was last edited 2 years ago, you need to fix something but I didn't figure it out what is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant