简体   繁体   English

如何在PHP中从Twitter获得流式家庭时间表?

[英]How to get streaming home timeline from Twitter in PHP?

How do I display my own streaming Twitter home timeline with PHP? 如何使用PHP显示我自己的流式Twitter主页时间线? So that the connection remains open indefinitely? 这样连接可以无限期保持打开状态?

I have a Twitter application and all the required keys and tokens. 我有一个Twitter应用程序以及所有必需的键和令牌。

I've been going over the Twitter documentation and playing around with several PHP libraries, but to no avail. 我浏览过Twitter文档并使用了多个PHP库,但无济于事。 I haven't found anything like a step-by-step tutorial, either. 我也没有找到类似分步教程的内容。

Thanks! 谢谢!

Twitter provides a useful widget for this (displayed as an iFrame on your website) Twitter为此提供了一个有用的小部件(在您的网站上显示为iFrame)

log into twitter(in your web browser), Click the gear>settings>widgets then you can configure it to search for @yourtwitterhandle or #yourhashtag or both. 登录Twitter(在Web浏览器中),单击齿轮>设置>小部件,然后可以对其进行配置以搜索@yourtwitterhandle或#yourhashtag或两者。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM