开发者

How to sign in with Twitter only using javascript

I was using Django, but i am not successful for signin with Twitter,

So I think maybe should use Javascript to sign in.

How do I sign in u开发者_JAVA技巧sing Javascript?


You can use Twitter's @Anywhere to let users sign in to their account via JavaScript. Look here for example:

http://dev.twitter.com/anywhere/begin#login-signup

Once the user is logged in, you can check their login state both from client and from server. On client, just use their provided function, and on server, you can validate the cookie. It is also described in that page.

http://dev.twitter.com/anywhere/begin#current-user

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜