[ljcom] r12034: LJSUP-12409: Implement style parameter p...
Committer: nnikulochkina
LJSUP-12409: Implement style parameter processing in 'authorize token' requestU trunk/cgi-bin/LJ/Identity/Facebook.pm
Modified: trunk/cgi-bin/LJ/Identity/Facebook.pm
===================================================================
--- trunk/cgi-bin/LJ/Identity/Facebook.pm 2012-05-30 14:48:04 UTC (rev 12033)
+++ trunk/cgi-bin/LJ/Identity/Facebook.pm 2012-05-30 15:01:56 UTC (rev 12034)
@@ -35,7 +35,7 @@
my $display = $forwhat eq 'external' ? 'popup'
: 'page';
-
+ $display = 'touch' if ($forwhat =~ /^oauth-/) && $opts{mobile};
my $addr = 'https://graph.facebook.com/oauth/authorize?' .
'display=' . $display . '&' .
"client_id=$LJ::FACEBOOK_CONNECT_CLIENT_ID&" .
