PHP Twitter OAuth

陌路散爱 提交于 2019-12-24 00:44:28

问题


I'm trying to make the registration and authorization of users on your site through twitter oauth. And I have problem.

I am using http://github.com/abraham/twitteroauth PHP.

In this code, the authorization pass by adding the token to the session. But how can I make sure that data is added to the cookie?

How to make sure that the user is logged on to my site using a tweeter (for half a year in the cookie). And how can I check whether the user entered the site at all?

I hope I explained this properly (


回答1:


I would highly recommend checking out the Zend_Service_Twitter and Zend_Oauth libraries. I'm using them for twitter functionality myself and they work great.

http://framework.zend.com/manual/en/zend.service.twitter.html

http://framework.zend.com/manual/en/zend.oauth.introduction.html



来源:https://stackoverflow.com/questions/4846342/php-twitter-oauth

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!