public function withVideo($videoPath, $data = [], $endpoint = 'me/videos')
    {
        $this->video = new video($videoPath, $endpoint);

        if (isset($data['title'])) {
            $this->video->setTitle($data['title']);
        }

        if (isset($data['description'])) {
            $this->video->setDescription($data['description']);
        }

        return $this;
    }
public function withVideo($videoPath, $data = [], $endpoint = 'me/videos')
    {
        $this->video = new video($videoPath, $endpoint);

        if (isset($data['title'])) {
            $this->video->setTitle($data['title']);
        }

        if (isset($data['description'])) {
            $this->video->setDescription($data['description']);
        }

        return $this;
    }
public function withVideo ( $ videoPath , $ data = [ ] , $ endpoint = 'me/videos' ) { $ this -> video = new video ( $ videoPath , $ endpoint ) ; if ( isset ( $ data [ 'title' ] ) ) { $ this -> video -> setTitle ( $ data [ 'title' ] ) ; } if ( isset ( $ data [ 'description' ] ) ) { $ this -> video -> setDescription ( $ data [ 'description' ] ) ; } return $ this ; }
Set facebook post image.

@param $videoPath
@param array  $data
@param string $endpoint

@return $this
Set facebook post image .