2

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 using Javascript?

1
  • 1
    Maybe stick with Django and try to get that working. Javascript runs in the user's browser and is unlikely to be a good solution for whatever you want to do Commented Jan 2, 2011 at 0:51

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

2 Comments

@Anywhere is deprecated and will cease functioning soon
Why is that deprecated?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.