PHP 推特 OAuth [英] PHP Twitter OAuth

查看:85
本文介绍了PHP 推特 OAuth的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过 twitter oauth 对您网站上的用户进行注册和授权.我有问题.

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

我正在使用 http://github.com/abraham/twitteroauth PHP.

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

在这段代码中,授权通过将令牌添加到会话中来传递.但是如何确保将数据添加到 cookie 中?

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?

如何确保用户使用推特(在 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?

我希望我解释得正确(

推荐答案

我强烈建议您查看 Zend_Service_Twitter 和 Zend_Oauth 库.我自己将它们用于 Twitter 功能,它们运行良好.

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

这篇关于PHP 推特 OAuth的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆