title: Facebook Graph API: get a Link title/caption/picture/description before posting to FB
body: <p>I would like to show the automatically generated name, caption, description and picture from a URL before posting it to Facebook in my app.</p>
  
  <p>This way the user can enter a URL and see what the defaults will be. If they wish to change the title/caption/picture/description before posting the link via the Graph API then they can.</p>
  
  <p>Is there a way to do this through the Graph API, or would I need to build my own simple scraper and look for relevant meta tags myself?</p>
  
  <p>Cheers,
  Dave</p>
  
  <p>--</p>
  
  <p>Edit: Thanks @CBroe for the answer. Here's a dirty example in PHP for anyone else:</p>
  
  <pre>
  $url = 'http://google.com';
  $ch = curl_init('https://graph.facebook.com/');
  curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
  curl_setopt($ch, CURLOPT_POST,true);
  curl_setopt($ch, CURLOPT_POSTFIELDS,array(
      'id' => $url,
      'scrape' => true,
  ));
  $data = json_decode(curl_exec($ch),true);
  print_r($data);
  </pre>
  
  <p>example output</p>
  
  <pre>
  Array
  (
      [url] => http://www.google.com/
      [type] => website
      [title] => Google
      [image] => Array
          (
              [0] => Array
                  (
                      [url] => http://www.google.com/images/google_favicon_128.png
                  )
  
          )
  
      [description] => Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.
      [updated_time] => 2014-04-02T10:41:44+0000
      [id] => 381702034999
  )
  </pre>
  
  <p>works in app:
  <img src="https://i.imgur.com/ZgJuSYI.png"></p>