shyambhat / InstagramKit

The unofficial Instagram iOS SDK
MIT License
970 stars 266 forks source link

How do you check if a user's account is private or not? #57

Open chrispmonkey opened 10 years ago

chrispmonkey commented 10 years ago

Please bare with me, I know it has to do with the getRelationshipStatusOfUser method, but I don't necessarily understand how to implement it. I essentially just want to get whether the user is private or not and store that value in a standardUserDefault.

dezinezync commented 10 years ago

@chrispmonkey Are you referring to the currently authenticated user in your app or another user?

chrispmonkey commented 10 years ago

Currently authenticated user

chrispmonkey commented 10 years ago

@dezinezync Essentially I want to check if the currently authenticated user is private or not and if they are then present them with a dialog that says that their profile must be public or instructions on how to change their profile to public before they can use the app.

dezinezync commented 10 years ago

@chrispmonkey doesn't that go against the whole privacy settings bit? I'm still looking into this, but I'd strongly advise you reconsider your model for your app. I doubt many users would want to convert their profiles to public, just so they can use your app (which is what brings you to ask this question, I believe).

chrispmonkey commented 10 years ago

@dezinezync The app involves users the ability to post their pictures for others (friends and/or strangers) to view and like in a sort of ranking ability. The process of checking for if a user is private or not is to remind them or help them to do the process in order to participate. If a user does not wish to participate within the app, the user will be allowed to view pictures and like them, but not post any of their own for the public. I hope this clarifies my reasoning for it.

dezinezync commented 10 years ago

@chrispmonkey indeed it does. I'll try and work this out.

chrispmonkey commented 10 years ago

@dezinezync any luck on a solution to determining if a user's account is private or not?

tdsolomons commented 9 years ago

I have the same problem. My app wants to know if logged in user is private or not. Please help.

mmdock commented 5 years ago

4 years later: https://i.instagram.com/api/v1/users/{user_id}/info/ has a field called is_private under user