dongmopu6734 2011-06-04 11:36
浏览 202

用于检查身份验证/用户的Twitter用户名的PHP脚本

I am asking for a user's twitter name, as part of a form input. I want to be able to quickly check that the username is valid and that the user is who they say they are (i.e. they have the password and can login to twitter using the provided username).

Does anyone know how I may implement such functionality? Better still, is there a PHP script/example that shows how to cobble together something similar?

  • 写回答

1条回答 默认 最新

  • dougong1031 2011-06-04 11:40
    关注

    I would recommend using a library for interacting with Twitter. You can try something like Zend_Service_Twitter from the Zend Framework. Since twitter no longer accepts the basic authentication, you will need to use a solution with OAuth authentication. Most twitter PHP libraries support OAuth out of the box and will save you tons of time.

    评论

报告相同问题?

悬赏问题

  • ¥15 Labview机器人问题
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序
  • ¥15 onvif+openssl,vs2022编译openssl64
  • ¥15 iOS 自定义输入法-第三方输入法
  • ¥15 很想要一个很好的答案或提示
  • ¥15 扫描项目中发现AndroidOS.Agent、Android/SmsThief.LI!tr