?
Solved

Twitter gadgets

Posted on 2012-03-12
1
Medium Priority
?
338 Views
Last Modified: 2012-03-19
Hello Experts,

I have seen some gadgets online but they seem to be so slow.
How can i create something as simple as this gadget on this website?

I want to have like the last 3-4 statuses updated on a side bar.

http://annenberg.usc.edu/
0
Comment
Question by:shpresa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 14

Accepted Solution

by:
EMB01 earned 2000 total points
ID: 37711454
You must get a twitter api key here https://dev.twitter.com/ then you can loop through a user's tweets like this (let me know if you need help or you had something else in mind):
$home_timeline = $twitteroauth->get('statuses/home_timeline', array('count' => 5));  
//print_r($home_timeline);
$html .= '<div class="tweets">';
foreach ($home_timeline as $tweet)
{
$html .= '<div class="tw"><a href="https://twitter.com/#!/'.$_SESSION['username'].'">@'.$_SESSION['username'].'</a>'.$tweet->text.'</div>';
}
$html .= "</div>";
echo $html;
}

Open in new window

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question