Facebook: Add needed perms to plain login URL

This commit is contained in:
Zach Copley 2010-11-18 13:34:41 -08:00
parent 229c2693f4
commit cb530566de

View 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'