public function getPostBody()
    {
        $body = [
            'message' => $this->getContent(),
        ];

        if ($this->link != null) {
            $body['link'] = $this->link->getUrl();
        }

        if ($this->image != null) {
            $body['media'] = $this->image;
        }

        if ($this->video != null) {
            $body['media'] = $this->video;
        }

        if ($this->params != null) {
            $body = array_merge($body, $this->params);
        }

        return $body;
    }
public function getPostBody()
    {
        $body = [
            'message' => $this->getContent(),
        ];

        if ($this->link != null) {
            $body['link'] = $this->link->getUrl();
        }

        if ($this->image != null) {
            $body['media'] = $this->image;
        }

        if ($this->video != null) {
            $body['media'] = $this->video;
        }

        if ($this->params != null) {
            $body = array_merge($body, $this->params);
        }

        return $body;
    }
public function getPostBody ( ) { $ body = [ 'message' => $ this -> getContent ( ) , ] ; if ( $ this -> link != null ) { $ body [ 'link' ] = $ this -> link -> getUrl ( ) ; } if ( $ this -> image != null ) { $ body [ 'media' ] = $ this -> image ; } if ( $ this -> video != null ) { $ body [ 'media' ] = $ this -> video ; } if ( $ this -> params != null ) { $ body = array_merge ( $ body , $ this -> params ) ; } return $ body ; }
Build Facebook post request body.

@return array
Build Facebook post request body .