Hey Allen,

The friendships/exists method will do this for you. It is documented here:
    http://dev.twitter.com/doc/get/friendships/exists

Best
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Sun, Nov 14, 2010 at 10:05 AM, FrikShun <erosg...@gmail.com> wrote:

> Hello All,
>
> I'm developing a Facebook App that will award micro-currency if the
> logged in user "follows" our focus user on Twitter.
>
> I've got the "Follow" button and the connect @Anywhere wired up to
> allow the user to connect to Twitter and follow our focus user.  We
> can then retrive the logged on user's Twitter screen name.
>
> What I'd like know is a simple API call to determine if user A is
> following user B.
>
> I know I can use the Status method to get all of user B's followers.
> I can then loop through all the users followers to see if any match
> the logged in users screen name.  But this sounds incredibly in-
> efficient.  User B may have millions of followers I'd have to spin
> through which would require multiple fetches of the status api paging
> over results.
>
> Is there anything out where I can pass in two screen_names or
> user_id's and get a boolean answer back as to whether there is a
> relationship between the two?
>
> Thanks!
>
> Allen
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to