33 responses to “Integrate Twitter Into Your Web Site Using PHP”

  1. Brandon Bowman

    I get this error. I wonder is it a server config issue?
    Warning: file_get_contents(tmp-1329342210.xml) [function.file-get-contents]: failed to open stream: No such file or directory in ../twitter/twitter-feed.php on line 44

    Warning: DOMDocument::loadXML() [domdocument.loadxml]: Empty string supplied as input in ..//twitter/twitter-feed.php on line 50

  2. Dave

    I get

    Warning: curl_setopt(): supplied argument is not a valid cURL handle resource in ….. on line 16(17, 18 and 19)

    any ideas as to why?

  3. Curt

    Thanks for the code. It’s the best I saw in my search. I was able to enhance it to filter what posts I wanted to be seen.

  4. Mike Silva

    I am not a PHP expert, but was able to make this work. My next question would be how can I make this work for multiple twitter accounts.

    For example on my website I would like for there to display several twitter accounts.

    Thanks,

  5. Shandy

    Quality script, thanks.

    Since Twitter have recently made a lot of changes to api and feeds ive had to update the url to –

    http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=YourTwitterNameHere

    Im having trouble with one thing though, my host providers server time does not change for daylight saving time (DST), so the server clock is an hour off. Because of this my feed is not updated very often regardless of the cache time, it updates once or twice a day. Any advice on altering the code to take this in to account?

  6. Jaimin Vaja

    thanks a lot,This is very helpful!
    I have also integrated Twitter for suvi.me iPhone application in PHP CodeIgniter in very simple way.

Leave a Reply