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 Connecting to Instagram

Timothy Morrill
Timothy Morrill
2,792 Points

Redirect URI not acceptable as show in the video

The Instagram developer site will not accept a redirect URI like the one shown in the video. I was able to get the form to submit by adding "https:" to the beginning. My redirect URI now is "https://photobombers://auth/instagram"

This then causes problems when trying to authenticate. The error description that happens when trying to authenticate states, "A server with the specified hostname could not be found."

I'm not sure how to get around this because it seems to me that the Instagram is going to actually search for the hostname on the internet.

1 Answer

Timothy,

Double check the URL. The format does not look right. Also can you post the code?