Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Photo Browser iPhone App Connecting to an API using OAuth Introducing API and OAuth 2.0

Photobombers - Instagram has changed what is allowed as a callback URL?

I have against my will registered for an account with instagram (man I feel dirty). I have gone to their developer section and gone to create a new application. When I go to enter the callback URI as photobombers://auth/instagram and submit I am given the following error.

You must enter an absolute URI that starts with http:// or https://

I am unable to continue with this part of the track because the API setup at dirty fifty instagram disallows it.

5 Answers

Found the issue, it wanted the website to start with http:// or https:// I can now move forward with the rest of this project. Why they can't just check for valid host and add http themselves is beyond me.

I figured it out! For the field above callback uri (the website) I didn't have http:// specified. I put that in for the website and was able to register just fine. That is a really misleading error on instagram's part.

Do you get this error in the instagram client? Because id did seem to work for me (I used the exact same URI). However a different issue I came across, was not being to POST any data before unchecking the 'Disable implicit OAuth' checkbox in the instagram client. After that, I could fetch data.

No I get this in the web browser when I go to create my API credentials

Thats very weird, I just created another client using "photobombers://auth/instagram" as the redirect URI without any problems. Don't know if it matters, but you mentioned you created your account just to build the app, did you activate your account (via the email they send?) . Besides that, can't think of anything else, sorry I couldn't help you out.

Yup I sure did. I'll try it again later when I am not getting ready for bed.

I'm having this same issue. Did you ever get to the bottom of it? I'm not sure how to continue since I'm pretty sure the callback url needs to be valid.