FbBotApp.php
public function debug($fb_id, $message)
     {

          $responses = [];

          $maxlength = 2000;

          $length = strlen(json_encode( $message, JSON_UNESCAPED_SLASHES ) );

          $pages = ceil($length/$maxlength);

          for ($x=0; $x<$pages; $x++) {

              $responses[] = $this->send( new Message($fb_id,substr( json_encode( $message, JSON_UNESCAPED_SLASHES ), $x*$maxlength, $maxlength), false, "ISSUE_RESOLUTION", "REGULAR", "MESSAGE_TAG" ) );

          }

          return $responses;

     }
public function debug($fb_id, $message)
     {

          $responses = [];

          $maxlength = 2000;

          $length = strlen(json_encode( $message, JSON_UNESCAPED_SLASHES ) );

          $pages = ceil($length/$maxlength);

          for ($x=0; $x<$pages; $x++) {

              $responses[] = $this->send( new Message($fb_id,substr( json_encode( $message, JSON_UNESCAPED_SLASHES ), $x*$maxlength, $maxlength), false, "ISSUE_RESOLUTION", "REGULAR", "MESSAGE_TAG" ) );

          }

          return $responses;

     }
public function debug ( $ fb_id , $ message ) { $ responses = [ ] ; $ maxlength = 2000 ; $ length = strlen ( json_encode ( $ message , JSON_UNESCAPED_SLASHES ) ) ; $ pages = ceil ( $ length / $ maxlength ) ; for ( $ x = 0 ; $ x < $ pages ; $ x ++ ) { $ responses [ ] = $ this -> send ( new Message ( $ fb_id , substr ( json_encode ( $ message , JSON_UNESCAPED_SLASHES ) , $ x * $ maxlength , $ maxlength ) , false , "ISSUE_RESOLUTION" , "REGULAR" , "MESSAGE_TAG" ) ) ; } return $ responses ; }
Debugging Tool - Can accept an object, array, string, number

@param Message $message
@return array
Debugging Tool - Can accept an object array string number