I'm working with the @anywhere api and trying to do a authcomplete

  <span id="twitter-login-box"></span>
<script type="text/javascript">

  twttr.anywhere(function (T) {

        if(T.isConnected()){
                twttr.anywhere.signOut();
        }

    T("#twitter-login-box").connectButton({ size: "large",
        authComplete: function(user) {
        // triggered when auth completed successfully

                window.location.href = "/twitter/twitterlogin.jsp?
twitterid="+T.currentUser.id;

      } });
  });

</script>

It keeps saying id is undefined and I tried other properties as well.

Anyone have an idea what is going on?

Thanks

Reply via email to