I have an app in which I want to have 10 UIImage objects that hold first 10 images by hashtag #clock. What is the best way to do this? And do I have to authorize into Instagram?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Connect to the Instagram API using
NSURLConnection. The API endpoints will return you responses in JSON format. You will then need to parse those responses using something likeNSJSONSerialization. Pick the image URLs from the response and createUIImageinstances from them.You won’t need to authenticate for most of the API calls, but you will need to request a client ID. Looks like you could use the
tags/tag-name/media/recentendpoint of the Instagram API for what you are trying to do.