title: Facebook Post with Photo/Video
body: <p>I have a website with Facebook capabilities (Sending personal messages, posting to wall). I use both the PHP and JavaScript Facebook SDKs. For posting to users walls/FanPages I use the following JavaScript SDK <code>feed</code> dialog:</p>
  
  <pre><code>function generalPost(producerID, producerName, fanPageID)
  { 
     var obj =
     {
        method: 'feed',
        link: '&lt;?php echo SEAT_NEAR_ME; ?&gt;?producerID='+ producerID,
        type: 'video',
        picture: 'https://&lt;?php echo DOMAIN; ?&gt;/DATA/producersPic/&lt;?php echo $_SESSION["IMG"];?&gt;',
        from: fanPageID,
        to: fanPageID, //fan page ID
        show_error: true,
        name: producerName,
        caption:'    ',
        description: '                     '
     };
  
        FB.ui(obj, function(response){
                 if (response &amp;&amp; response.post_id) 
                 {
                     //post success
                 } 
                 else 
                 {
                     //alert('Post was not published.');
                 }
             }); 
  }
  </code></pre>
  
  <p>This produces the following dialog: (I've blurred the personal information)</p>
  
  <p><img src="https://i.stack.imgur.com/xofkD.jpg" alt="Feed dialog"></p>
  
  <p>I want to add 'Photo / Video' upload capability for my dialog, just as (or similar to) to the one on facebook:</p>
  
  <p><img src="https://i.stack.imgur.com/ApoOm.jpg" alt="Post with video"></p>
  
  <p>I've googled about it and checked the Facebook docs and only found this:</p>
  
  <p><a href="https://developers.facebook.com/blog/post/493/" rel="nofollow noreferrer">Photo batch uploads</a></p>
  
  <p>I have two question:</p>
  
  <ol>
  <li>Is this what I need or is there any better way to write the photo/video dialog ?</li>
  <li>From the <a href="https://developers.facebook.com/blog/post/493/" rel="nofollow noreferrer">Facebook docs</a> I've found, What does this means: <code>$my_url = "YOUR_POST_LOGIN_URL"</code>
  What is <code>POST_LOGIN_URL</code> ?</li>
  </ol>
  
  <p>Thanks.</p>