title: FACEBOOK JS SDK ::how to post an image on wall
body: <p>i'm trying to post an image to my users's facebook wall once they hit a botton</p>
  
  <p>i'm using javascript SDK but i have a problem, the image looks like a link in the wall ... but that's not what i want ... i want to post an image ... same as when you put an image link on your status text field and it turns to image </p>
  
  <p>any help ?</p>
  
  <pre><code>FB.ui(
             {
               method: 'stream.publish',
               message: 'test',
               attachment :{ 
                      'name': 'i\'m bursting with joy', 
                      'href': ' http://bit.ly/187gO1', 
                      'caption': '{*actor*} rated the lolcat 5 stars', 
                      'description': 'a funny looking cat', 
                      'properties': { 
                          'category': { 'text': 'humor', 'href': 'http://bit.ly/KYbaN'}, 
                          'ratings': '5 stars' 
                      }, 
                      'media': [{ 
                              'type': 'image', 
                              'src': 'http://icanhascheezburger.files.wordpress.com/2009/03/funny-pictures-your-cat-is-bursting-with-joy1.jpg', 
                              'href': 'http://bit.ly/187gO1'}] 
                          },
               user_message_prompt: 'Share your thoughts about Connect'
             },
             function(response) {
               if (response &amp;&amp; response.post_id) {
                 alert('Post was published.');
               } else {
                 alert('Post was not published.');
               }
             }
  </code></pre>