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条)

报告相同问题?

悬赏问题

  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?