mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #58] Help getting instagram profile data #38
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hopye on GitHub (May 2, 2015).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/58
How can i get the users's profile data ? Username, id , etc..
In instagram theres no end like /user/me .
Instagram sends the profile info in the authentication process
@zavada commented on GitHub (May 2, 2015):
You can find the example of api request in ViewController.swift. Look into func doOAuthInstagram().
Just change url in the get request.
@gabriel-jones commented on GitHub (May 2, 2015):
Also, documentation on Instagram (you can see the console here: https://instagram.com/developer/api-console/) shows that a request would be to "https://api.instagram.com/v1/users/self" for the data of the person who logged in, or a specific ID in place of 'self' would retrieve data for that user.
@hopye commented on GitHub (May 9, 2015):
omg.. i didn't know instagram had a users/self !@@ ill check that right now!! thnx!
@hopye commented on GitHub (May 10, 2015):
i got it!, How can i send a deauthententicate to instagram, like... the user wants to log out..
@ejpusa-zz commented on GitHub (Jul 1, 2015):
You may want to look into SwiftyJSON. Makes JSON parsing super simple, and that gets you pretty much everything from your IG response object.
https://github.com/SwiftyJSON/SwiftyJSON/tree/master
@phimage commented on GitHub (Aug 8, 2015):
@hopye please close this issue, initial question has been answered
for a new question new issue but I can try to repond.
The User doesn't logout, its just you that do not use the token anymore
There is no "revoke token" currently in instagram api ( https://instagram.com/developer/authentication/ ) to invalidate token and maybe no expiration time that can be specified by you