doupin5667 2010-05-27 11:21
浏览 53
已采纳

未来证明用PHP推特

I'm looking to implement a system for tweeting directly from my site backend, which is written in PHP 5. I have a script from the internet that I can adapt, but I'm concerned that when Twitter switches to Oauth only, I'll be out in the cold.

Basically, I'm hoping someone can point me toward a script/tutorial that will let me do the following:

  • access twitter via the Oauth system
  • Post Tweets and receive error codes
  • Let me define an application/site name (I'm a bit fuzzy on whether Twitter allows this)

Ideally I need all 3 points explained in detail.

Thanks

  • 写回答

2条回答 默认 最新

  • duanleiliu7373 2010-05-27 23:16
    关注

    I use the twitteroauth library: http://github.com/abraham/twitteroauth - "The first PHP Library to support OAuth for Twitter's REST API". Works great.

    You can register a Twitter application here: http:// dev.twitter.com/apps/new

    Once you register a Twitter app you'll get an app-specific consumer key/token and secret, which you can then use with the twitteroauth library to access the Twitter API.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 AT89C51控制8位八段数码管显示时钟。
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题