Saturday, 28 September 2013

Friends tweets feed for logged in users (Rails)

Friends tweets feed for logged in users (Rails)

Hi and sorry in advance for nooby question, but I've researched this
subject quite a lot and still don't understand it.
I'm writing a rails app, in which user after logging in can add their
twitter account with OmniAUTH. After they did it, I want them to see a
proper friends feed on their main page, so all the tweets posted by their
friends. But obviously I can't do it with usual twitter api, since it hits
the rate limit very fast, so I assume that I should use Tweetstream gem
with Daemons, but I don't understand the way Tweetstream works. I can see
in documentation them using either TweetStream::Client.new or
TweetStream::Client.new('user','pass'), and to me it looks like the way to
see my own tweets only, since I can't get the users password.
And as an additional question, theoretically, if I have a website with a
lot of users, and I'm using Tweetstream to show their twitter feeds, won't
it hit the rate limit very fast, only because of amount of users? And if
so, what is the right way?
Sorry for silly questions, I would really-really appreciate if someone
could help me with it or at least give me couple of links that can help
me.
Thanks a lot in advance.

No comments:

Post a Comment