X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Ffacebooksettings.php;h=c3b364743a0d2e6c383dbf94273365ecf15f0029;hb=d9e8dabaf4c5b38712a3e3ce97b45c5effee4bad;hp=227e123160900d22a0b8d4d7563f229de4984e55;hpb=37423b12d7a58bae728476c6f1a8ff3fef4c6d9f;p=quix0rs-gnu-social.git diff --git a/actions/facebooksettings.php b/actions/facebooksettings.php index 227e123160..c3b364743a 100644 --- a/actions/facebooksettings.php +++ b/actions/facebooksettings.php @@ -1,7 +1,7 @@ facebook->api_client->users_hasAppPermission('status_update')) { + if ($this->facebook->api_client->users_hasAppPermission('publish_stream')) { $this->elementStart('form', array('method' => 'post', 'id' => 'facebook_settings')); @@ -131,7 +131,7 @@ class FacebooksettingsAction extends FacebookAction $this->elementStart('ul', array('id' => 'fb-permissions-list')); $this->elementStart('li', array('id' => 'fb-permissions-item')); - $this->elementStart('fb:prompt-permission', array('perms' => 'status_update', + $this->elementStart('fb:prompt-permission', array('perms' => 'publish_stream', 'next_fbjs' => 'document.setLocation(\'' . "$this->app_uri/settings.php" . '\')')); $this->element('span', array('class' => 'facebook-button'), sprintf(_('Allow %s to update my Facebook status'), common_config('site', 'name')));