Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try using <a href="http://bugs.developers.facebook.net/show_bug.cgi?id=12696" rel="nofollow">this</a> code with the FB SDK</p> <pre><code>require_once 'facebook.php'; $appapikey = 'xxx'; $appsecret = 'xxx'; $facebook = new Facebook($appapikey, $appsecret); $session_key = 'xxx'; //this is the infinite session_key returned when asking for the offline_access extended permission $args = array( 'method' =&gt; 'facebook.video.upload', 'v' =&gt; '1.0', 'api_key' =&gt; $appapikey, 'call_id' =&gt; microtime(true), 'format' =&gt; 'JSON', 'session_key' =&gt; $session_key, 'title' =&gt; 'My video title', 'description' =&gt; 'My video description' ); ksort($args); $sig = ''; foreach($args as $k =&gt; $v) { $sig .= $k . '=' . $v; } $sig .= $appsecret; $args['sig'] = md5($sig); $args["short.wmv"] = '@E:\path\to\short.wmv'; $ch = curl_init(); $url = 'http://api-video.facebook.com/restserver.php?method=facebook.video.upload'; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $args); $data = curl_exec($ch); print_r($data); //returned xml here </code></pre> <p>I also found a <a href="http://bugs.developers.facebook.net/show_bug.cgi?id=12696" rel="nofollow">bug report</a> submitted today stating that video uploads have been working and not working sporatically. It could be your code is just fine and facebook's APIs are messing up.</p> <p>EDIT:</p> <p>Try <a href="http://forum.developers.facebook.net/viewtopic.php?id=56407" rel="nofollow">the following</a>, it seems to have worked for a few people.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload