Reputation: 629
Is There anyway to check if I am following a certain user on Twitter other than getting the whole list of people who I am following and then start comparing Ids?
What I know is getting the whole list of people I am following is done through this method:
getFriendsIDs(long cursor)
Returns an array of numeric IDs for every user the authenticating user is following.
Upvotes: 5
Views: 1774
Reputation: 405725
You can use the showFriendship
method to see if one user is following another. Call that method, which returns a Relationship
object, which has methods to see if the two users specified are following each other.
Upvotes: 11