Exemplo n.º 1
0
  public function testVideoUpload() {
    $facebook = new FBRecordURL(array(
      'appId'  => self::APP_ID,
      'secret' => self::SECRET
    ));

    $facebook->api(array('method' => 'video.upload'));
    $this->assertContains('//api-video.', $facebook->getRequestedURL(),
                          'video.upload should go against api-video');
  }
Exemplo n.º 2
0
 public function testVideoUploadGraph()
 {
     $facebook = new FBRecordURL(array('appId' => self::APP_ID, 'secret' => self::SECRET));
     $facebook->api('/me/videos', 'POST');
     $this->assertContains('//graph-video.', $facebook->getRequestedURL(), '/me/videos should go against graph-video');
 }
Exemplo n.º 3
0
 public function testVideoUpload()
 {
     $facebook = new FBRecordURL(array('appId' => self::APP_ID, 'secret' => self::SECRET, 'cookie' => true));
     $facebook->setSession(self::$VALID_EXPIRED_SESSION);
     $facebook->api(array('method' => 'video.upload'));
     $this->assertContains('//api-video.', $facebook->getRequestedURL(), 'video.upload should go against api-video');
 }