title: Facebook C# SDK Authorization Problem
body: <p>I have an iFrame Facebook application.  I am using the Facebook C# SDK, <code>Facebook</code> and <code>Facebook.Web</code> libraries.</p>
  
  <p>When a user first comes to my application I create a <code>FacebookApp</code> object on <code>page_load()</code>.  If the <code>app.Session</code> is null I create a <code>CavasAuthorizer(app)</code> then call <code>Authorize()</code>.</p>
  
  <p>Two problems:</p>
  
  <p>First, the redirect URL that is generated by calling <code>Authorize</code> causes Facebook to error with a bad "next" parameter.  Says the "next" parameter is not owned by the application. It looks like this:</p>
  
  <pre><code>next=http://localhost:4002/facebookredirect.axd/mygame_dev/mygame.aspx
  </code></pre>
  
  <p>I can edit the code in <code>CanvasURLBuilder</code> to make the next look like this:</p>
  
  <pre><code>next=http://localhost:4002/mygame.aspx
  </code></pre>
  
  <p>At this point the URL works if I cut and paste into a browser however it brings me to my second issue.</p>
  
  <p>When the code runs the user is presented with a mostly empty page with a mid-sized Facebook image and a link "go to Facebook".  When the user clicks on the link it then takes the user to the correct authorization page for my application.</p>
  
  <p>I have a feeling these are two possibly related issues but potentially separate.</p>
  
  <p>Any help here would be greatly appreciated.</p>
  
  <p>-Andy </p>