Isis
Isis

Reputation: 4666

PHP Twitter OAuth

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 (

Upvotes: 2

Views: 358

Answers (1)

Jason Palmer
Jason Palmer

Reputation: 731

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

Upvotes: 1

Related Questions