title: Youtube Video Post using Facebook Graph api
body: <p>i have a php script for posting the video to my facebook page wall.</p>
  
  <pre><code>$attachment = array(
      'access_token' =&gt; $this-&gt;config-&gt;get('fb_auto_post_access_token'),
      'message' =&gt; 'Some text message',
      'link' =&gt; 'http://www.youtube.com/v/2omqg5PFJUY', //the video to embed
      'name' =&gt; 'Arke Uzaktan Eğitim Kurumsal Video',
      'caption' =&gt; 'Arke Uzaktan Eğitim Kurumsal',
      'picture' =&gt; 'http://img.youtube.com/vi/2omqg5PFJUY/default.jpg',
      'source' =&gt; 'http://www.youtube.com/v/2omqg5PFJUY', //the video to embed
      'description' =&gt; 'Some desc',
      'type' =&gt; 'video',
      'actions' =&gt; json_encode(array('name' =&gt; $this-&gt;config-&gt;get('config_name'),'link' =&gt; $parent_link ))
  $this-&gt;facebook-&gt;api('/' . $pagenumber . '/videos','post', $attachment)
              );
  </code></pre>
  
  <p>when I run this script i see a error code "OAuthException: (#353) You must select a video file to upload." i cant solve this problem. what's wrong with this script.
  Need help.</p>