title: The provided value for the input parameter 'redirect_uri' is not valid
body: <p>I keep receiving this error from windows live</p>
  
  <blockquote>
    <p>The provided value for the input parameter 'redirect_uri' is not
    valid. The expected value is
    'https://login.live.com/oauth20_desktop.srf' or a URL which matches
    the redirect</p>
  </blockquote>
  
  <p>Why do I keep receiving this error. I have the domain set in the windows live developer app</p>
  
  <p>in the &lt;head&gt; element I have</p>
  
  
  
  <pre><code>&lt;script src="//js.live.net/v5.0/wl.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>just below the &lt;body&gt; element I have</p>
  
  
  
  <pre><code>  WL.init({
      client_id: '{S_AL_WL_CLIENT_ID}', //{S_AL_WL_CLIENT_ID} = phpbb template variable for client_id
      redirect_uri: '{AL_BOARD_URL}', //{AL_BOARD_URL} = phpbb template variable for the  urlencoded domain name
      response_type: 'token',
      scope: ["wl.signin", "wl.basic", "wl.birthday", "wl.emails", "wl.work_profile", "wl.postal_addresses"]
  });
  </code></pre>
  
  <p>the login button is</p>
  
  <pre><code>    &lt;div id="login"&gt;
          &lt;a href="#"&gt;&lt;img src="images/windows_live_connect.png" alt="Windows Live" /&gt;&lt;/a&gt; 
      &lt;/div&gt;
  </code></pre>
  
  <p>the listener</p>
  
  
  
  <pre><code>jQuery('#login a').click(function(e) 
  {
      e.preventDefault();
              WL.login({
                  scope: ["wl.signin", "wl.basic", "wl.birthday", "wl.emails", "wl.work_profile", "wl.postal_addresses"]
              }).then(function (response) 
              {
                  //do something with stuff here. You know brainy type ajaxy stuff to auth a user
              },
              function (responseFailed) 
              {
                  console.log("Error signing in: " + responseFailed.error_description);
              });
  
  });
  </code></pre>