Jan 17, 2012

How to Create a Twitter Sign-In Conduit

,
A Twitter sign-in conduit is a button you can place on your website that allows Twitter users to sign in to Twitter without having to go to the actual Twitter website and log in. If your site has built-in Twitter features, this saves your visitors time and also keeps them on your page instead of forcing them to go somewhere else. You can add the sign-in conduit in a few steps.

Instructions

    • 1
      Open the source code of your Web page in a text editor. You can use the Notepad application that comes bundled natively with the Windows operating system.
    • 2
      Paste the following code between the <head> and </head> tags:
      <script src="http://platform.twitter.com/anywhere.js?id=YOUR_API_KEY&v=1" type="text/javascript"></script>
      Replace the YOUR_API_KEY section of the string with your Twitter API key.
    • 3
      Enter this code at the location on your Web page where you'd like the Twitter sign-in box to be displayed:
      <span id="login"></span>
      <script type="text/javascript">
      twttr.anywhere(function (T) {
      T("#login").connectButton();
      });
      </script>
    • 4
      Save your edited source file and re-publish it to your Web space. The next time you or a visitor comes to the site, the Twitter sign-in conduit will be present on the page.

0 commentaires to “How to Create a Twitter Sign-In Conduit”

Post a Comment

 

HowToYo Copyright © 2011 | Template design by O Pregador | Powered by Blogger Templates