Closed (won't fix)
Project:
Twitter
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Jun 2009 at 23:28 UTC
Updated:
8 Nov 2012 at 23:23 UTC
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
Comment #1
steinmb commentedComment #2
chia commentedYou 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.
Comment #3
chrsnlsn commentedAnyone make any progress on this?
Comment #4
juampynr commentedAre 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.
Comment #5
chrsnlsn commentedYeah just looking for a something that shows a user what they would see if they were looking at their own twitter account page.
Comment #6
juampynr commentedThis is out of scope for this module. Reopen if there is a patch to review.