Hi, I would get the user's timeline, such as home page for logged in users does at twitter.com website. So I would get all his twits and his friends.
Reading docs I wrote a module implementing hook_block with content twitter_fetch_timeline('myuser') but only his tweets are shown.
Do I have to login that user using API? User is default global configured, so I suppose would be logged in by default (password is set in administration settings).

Comments

steinmb’s picture

Version: 6.x-2.5 » 6.x-3.x-dev
Category: support » feature
chia’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev

You need to use twitter streaming API.
To display tweets in real time from your following like twitter does, a combination of nodejs and websockets will be ideal.
Here is a rough implementation of that http://andregoncalves.com/2009/12/29/Nodejs-twitter-streaming-with-html5...
But to integrate with twitter module, we need to use Oauth instead of basic auth as used in above article.

I had worked on a similar implementation before. I will try and share some working code asap.

chrsnlsn’s picture

Anyone make any progress on this?

juampynr’s picture

Are you saying that you want to list all tweets of a Twitter account plus the tweets of all his friends?

If so, I think that you would need to call twitter_fetch_timeline('myuser') and then get the list of friends of that user (which needs OAuth authentication) and finally loop over them fetching their timeline.

chrsnlsn’s picture

Yeah just looking for a something that shows a user what they would see if they were looking at their own twitter account page.

juampynr’s picture

Status: Active » Closed (won't fix)

This is out of scope for this module. Reopen if there is a patch to review.