]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Facebook/facebookutil.php
FacebookPlugin: Fix up FBML canvas app so it keeps working after
[quix0rs-gnu-social.git] / plugins / Facebook / facebookutil.php
index fb70c51bc542efbb1d3f27adc7b07efb7d2e4742..3996459a63ac5438bb073a2c8cd671e7e4e7f95d 100644 (file)
@@ -50,6 +50,7 @@ function getFacebook()
 
 function isFacebookBound($notice, $flink) {
     if (empty($flink)) {
+       common_debug("QQQQQ empty flink");
         return false;
     }
 
@@ -157,11 +158,6 @@ function facebookBroadcastNotice($notice)
                 common_log(LOG_WARNING, $msg);
             }
 
-            // Finally, attempt to update the user's profile box
-            if ($canPublish == 1 || $canUpdate == 1) {
-                updateProfileBox($facebook, $flink, $notice, $user);
-            }
-
         } catch (FacebookRestClientException $e) {
             return handleFacebookError($e, $notice, $flink);
         }
@@ -293,33 +289,6 @@ function publishStream($notice, $user, $fbuid)
     );
 }
 
-function updateProfileBox($facebook, $flink, $notice, $user) {
-
-    $facebook = getFacebook();
-    $fbaction = new FacebookAction(
-        $output = 'php://output',
-        $indent = null,
-        $facebook,
-        $flink
-    );
-
-    $fbuid = $flink->foreign_id;
-
-    common_debug(
-          'FacebookPlugin - Attempting to update profile box with '
-          . "content from notice $notice->id for $user->nickname ($user->id), "
-          . "Facebook UID: $fbuid"
-    );
-
-    $fbaction->updateProfileBox($notice);
-
-    common_debug(
-        'FacebookPlugin - finished updating profile box for '
-        . "$user->nickname ($user->id) Facebook UID: $fbuid"
-    );
-
-}
-
 function format_attachments($attachments)
 {
     $fbattachment          = array();