Committer: ailyin
LJINT-386U trunk/cgi-bin/LJ/Identity/Facebook.pm
Modified: trunk/cgi-bin/LJ/Identity/Facebook.pm =================================================================== --- trunk/cgi-bin/LJ/Identity/Facebook.pm 2011-02-10 05:49:39 UTC (rev 10008) +++ trunk/cgi-bin/LJ/Identity/Facebook.pm 2011-02-10 08:18:50 UTC (rev 10009) @@ -33,7 +33,11 @@ my $callback_url = "$LJ::SITEROOT/identity/callback-facebook.bml?" . 'forwhat=' . $forwhat; + my $display = $forwhat eq 'external' ? 'popup' + : 'page'; + my $addr = 'https://graph.facebook.com/oauth/authorize?' . + 'display=' . $display . '&' . "client_id=$LJ::FACEBOOK_CONNECT_CLIENT_ID&" . 'redirect_uri=' . LJ::Text->eurl($callback_url) . '&' . 'scope=' . join(',', @request_permissions);