Display Twitter list by PHP on your website)

Source: Internet
Author: User

I always wanted to list all of my tweets by PAGE like logs. Because twitese is often used for pushing, I used to modify them into a personal Twitter list. Although I have succeeded for a while, but I don't know why there is always a problem with certification, which makes it impossible to list my tweets. I 've been depressed for a while. Although it may not be a small case for a cool man, or a dynamic JSON parsing problem, it seems to be an insurmountable gap for me. However, by accident, I encountered a code called tinytui2, a simpler pushing tool than twitese, so I also used it for modification. The result showed that it was easy to achieve my goal, for authentication problems, I just commented on a file and didn't need to authenticate it. It was a big surprise. After several hours of busy modification of HTML and CSS, I finally looked like a bit, and I did not dare to hide it. So I would like to share it with you. I only need to use two PHP files and one CSS file, CSS files are actually added by myself. You can even bare CSS files. The effect is as follows:

You can also click here for the specific effect.

Usage: Download the compressed package, decompress the file to your foreign Vm, and modify the index. in the PHP file, especially the username in line 1 ($ screen_name = 'rovertang';), you must change my username to your username.

Note: First, you must upload the file to a host that can access twitter. Generally, it is a foreign host. Second, you must change the user name. Otherwise, you will always see my push;

Existing problems: first, the time has not been adjusted to the time zone of the mainland, so there is a time difference. If a friend has modified the time, please send me a code. Thank you first; the second is to remotely read the JSON on Twitter. I personally think it is better to cache the JSON on the server and directly read the cached file than to read the JSON on Twitter in real time, please write code for this part.

Welcome to continue.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.