Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,

i am using following code for login/logout in twitter site,can able to login but not logout ,please suggest me any solution.

XML
<script src="http://platform.twitter.com/anywhere.js?id=APIKEY;v=1" type="text/javascript"></script>

                 <span id="login"></span>

  <script type="text/javascript">
      twttr.anywhere(function (T) {

          document.getElementById("signin-btn").onclick = function () {
              T.signIn();
              if (T.isConnected()) {
                  alert(JSON.stringify(T.currentUser.data()));

              }
          };
          T.bind('signOut', function () {
              alert("In");
              twttr.anywhere.signOut();
              // add script to run on signOut here

          })
          document.getElementById("twiterLogOut").onclick = function () {
              alert("SignOut");
              T.logout();

          }

      });




</script>
Posted
Updated 25-Oct-12 20:20pm
v2

1 solution

The best route for you would be to read the twitter spec[^] and if you're still having problems there is a twitter forum[^] where you'll find people who know what's what.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900