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

Eliezer Marte
Eliezer Marte
4,728 Points

Photo bombers without Instagram Account?

Is there a way to view the photos from photo bombers from Instagram even if you don't have an Instagram account? Also how do you cache data for airplane mode in the track version?

3 Answers

Amit Bijlani
STAFF
Amit Bijlani
Treehouse Guest Teacher

We cover caching in the course using a Cocoapod called SamCache. You can watch it here: http://teamtreehouse.com/library/build-a-photo-browser-iphone-app/what-is-an-api/caching-photos

As for being able to view photos without an Instagram account, I'm afraid that is not possible because Instagram does not allow open access to its API.

Eliezer Marte
Eliezer Marte
4,728 Points

Okay makes sense. However the app crashes in airplane mode do I have to use some reachability code? Also I keep getting Forbidden when I sign in with another account. Not sure if this is because the access token is only limited to one account per app.

Amit Bijlani
Amit Bijlani
Treehouse Guest Teacher

Not sure why it crashes in airplane mode. You would have to add breakpoints and step through the code to identify where and why it is crashing. You should be able to login with any because the access token for the API access and not to restrict login access.

Eliezer Marte
Eliezer Marte
4,728 Points

Alright I will add breakpoints. I don't understand I'm not restricting login access in the code. I haven't alternated it from the one in the track. Yet only my account linked to the access token can sign in.