]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Facebook: Add needed perms to plain login URL
authorZach Copley <zach@status.net>
Thu, 18 Nov 2010 21:34:41 +0000 (13:34 -0800)
committerZach Copley <zach@status.net>
Thu, 18 Nov 2010 21:34:41 +0000 (13:34 -0800)
plugins/FacebookBridge/actions/facebooklogin.php

index 9a230b72410092661f411f36de33706588453e4a..f8a45c41b2969ebdb0c1803bf6f00026198a045c 100644 (file)
@@ -79,8 +79,9 @@ class FacebookloginAction extends Action
             array(
                 'href' => $facebook->getLoginUrl(
                     array(
-                        'next'   => common_local_url('facebookfinishlogin'),
-                        'cancel' => common_local_url('facebooklogin')
+                        'next'       => common_local_url('facebookfinishlogin'),
+                        'cancel'     => common_local_url('facebooklogin'),
+                        'req_perms'  => 'read_stream,publish_stream,offline_access,user_status,user_location,user_website,email'
                     )
                  ),
                 'id'    => 'facebook_button'