Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r10009: LJINT-386

Committer: ailyin
LJINT-386
U   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);

Tags: andy, ljcom, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments