title: Facebook Iframe App - Strange Redirection Problems
body: <p>When I'm doing a server-side redirection in a Facebook iframe application, I get the this strange Facebook Logo with a link. When I click it, I get redirected to site I set the redirection to in the first place. What happens here? Any "Click Protection" in place?</p>
  
  <p>Thanks!</p>
  
  <p>Redirection Code:<br>
  Tried <strong>Client Redirect</strong> </p>
  
  <pre><code>    args = dict(client_id=FACEBOOK_APP_ID, redirect_uri=base_dir , scope='user_photos,email,offline_access')
      return render_to_response('fb/nopermission.html', { 'javascript': "&lt;script&gt;window.top.location=\"" + "https://graph.facebook.com/oauth/authorize?" + urllib.urlencode(args )+ "\"&lt;/script&gt;"  } )
  </code></pre>
  
  <p>and <strong>Server Redirect:</strong>  </p>
  
  <pre><code>args = dict(client_id=FACEBOOK_APP_ID, redirect_uri=base_dir , scope='user_photos,email,offline_access')
  return HttpResponseRedirect(https://graph.facebook.com/oauth/authorize?" + urllib.urlencode(args))
  </code></pre>
  
  <p>Same Result in both cases</p>
  
  <p><a href="https://i.stack.imgur.com/suIa6.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/suIa6.jpg" alt="alt text"></a>
  </p>