Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9001409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:25:56+00:00 2026-06-16T00:25:56+00:00

I m using twitter anywhere api for allowing user to sign in with twitter

  • 0

I m using twitter anywhere api for allowing user to sign in with twitter and get their twitter data to store it my table.Since twitter anywhere api is going to expire soon how can i migrate this functionality to oauth.

my javascript:

<script src="https://platform.twitter.com/anywhere.js?id={{twitterappid}}&v=1"></script>
<script type="text/javascript">
var twt_connected = 0;
var Uuid = '2334443224';
$(function(){
if ($('#twtlogin').length) {
  // do something
twttr.anywhere(function(twitter) {
if(twitter.isConnected()){
//alert('Welcome, you are connected');
currentUser = twitter.currentUser;
screenName = currentUser.data('screen_name');
jQuery.ajax({url:"/twitter/Uuid="+Uuid+"/" ,
             type: "POST",
             data: {user: JSON.stringify(currentUser) },
             dataType: "json",
             success: function(result) {
                        }});
document.getElementById("twtlogin").innerHTML = '<img src="/images/icon_tconnected.gif" width="153" height="37" alt="Connected" />';
 }
 });
 }
 });

$("#login").click(function(e){
    e.preventDefault();
    if (twt_connected == 0){
    $.post("/twt-click-time/Uuid="+Uuid+"/","clicked",function(data){})
    twttr.anywhere(function (T) {
             T.bind("authComplete", function (e, user) {
            document.getElementById("twtlogin").innerHTML = '<img src="/images/icon_tconnected.gif" width="153" height="37" alt="Connected" />';
             twt_connected = 1;
             currentUser = T.currentUser;
             screenName = currentUser.data('screen_name');
             jQuery.ajax({url:"/twitter/Uuid="+Uuid+"/" ,
                         type: "POST",
                         data: {user: JSON.stringify(currentUser) },
                         dataType: "json",
                         success: function(result) {
                        }});

             });
             T.signIn();
             });
             }
             });

</script>

I m using django at my backend.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:25:57+00:00Added an answer on June 16, 2026 at 12:25 am

    I’m doing this right now for flask. The easiest option is just to plug-in some server side oauth calls.

    It’s a reasonably large amount of code so I won’t copy and paste the whole thing here, but the github page for simplegeo’s oauth2 actually has a “logging into django with twitter” walkthrough that should help out.

    After having gone through a few options, I think I like twython best. It’s just this to do the first step of the oauth:

    from twython import Twython
    
    t = Twython(app_key='key',
                app_secret='secret',
                callback_url='http://google.com/')
    auth_props = t.get_authentication_tokens()
    print auth_props
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the new twitter @anywhere api for logging in on the client using
Using Twitter OAuth, I'm saving the user's data as JSON in a twitter field
Using Twitter's data model as an example: User A follows N other users, each
Using Twitter Bootstrap's bootstrap-tab.js, I have: <ul class=tabnavcenter id=myTab> <li class=active><a href=#home data-toggle=tab>about</a></li> <li><a
I am using Twitter gem (1.7.1) in ruby. I want to get my member
I'm using twitter login for my site,when user entered with his twitter login id
I'm using twitter bootstrap's modal window to load a remote image <a href=assets/500x300.gif data-target=#image-preview
I'm using Twitter Bootstrap modal featurs and loading data from remote locations. I'm providing
I'm looking to build a small 'Twitter style' site using Django to get to
using twitter bootstrap typeahead i get google chrome suggestion list above typeahead list $(document).ready(function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.