X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=facebook%2Ffacebook.php;h=f2e965c422ea54baeb48937c8c24a998b1287f2d;hb=18784a484b04b5f74e6d4dca516b2dc20cffe953;hp=66f52af37742940ac9fe0475f7646f57f13bca08;hpb=a477266bd9833db19e9d799f954b726e75268bd8;p=friendica-addons.git diff --git a/facebook/facebook.php b/facebook/facebook.php index 66f52af3..f2e965c4 100644 --- a/facebook/facebook.php +++ b/facebook/facebook.php @@ -13,15 +13,15 @@ * Detailed instructions how to use this plugin can be found at * https://github.com/friendica/friendica/wiki/How-to:-Friendica%E2%80%99s-Facebook-connector * - * Vidoes and embeds will not be posted if there is no other content. Links - * and images will be converted to a format suitable for the Facebook API and - * long posts truncated - with a link to view the full post. + * Vidoes and embeds will not be posted if there is no other content. Links + * and images will be converted to a format suitable for the Facebook API and + * long posts truncated - with a link to view the full post. * * Facebook contacts will not be able to view private photos, as they are not able to - * authenticate to your site to establish identity. We will address this + * authenticate to your site to establish identity. We will address this * in a future release. */ - + /** TODO * - Implement a method for the administrator to delete all configuration data the plugin has created, * e.g. the app_access_token @@ -260,7 +260,7 @@ function fb_get_friends_sync_parsecontact($uid, $contact) { $contact->link = 'http://facebook.com/profile.php?id=' . $contact->id; // If its a page then set the first name from the username - if (!$contact->first_name and $contact->username) + if (!$contact->first_name && $contact->username) $contact->first_name = $contact->username; // check if we already have a contact @@ -495,9 +495,9 @@ function facebook_post(&$a) { } info( t('Settings updated.') . EOL); - } + } - return; + return; } // Facebook settings form @@ -534,7 +534,7 @@ function facebook_content(&$a) { $fb_limited = get_config('facebook','restrict'); $o = ''; - + $fb_installed = false; if (get_pconfig(local_user(),'facebook','post')) { $access_token = get_pconfig(local_user(),'facebook','access_token'); @@ -546,7 +546,7 @@ function facebook_content(&$a) { } } } - + $appid = get_config('facebook','appid'); if(! $appid) { @@ -559,10 +559,10 @@ function facebook_content(&$a) { $o .= '