How to upload a photo to facebook using php sdk?
<p>how get the access token ??? and upload an image just by opening a file on a site?? by using links?
    

<pre><code>$facebook = new Facebook(array(
 'appId'  =&gt; 'xxxxxxxxxx',
 'secret' =&gt; 'xxxxxxxxxxxxxxxxxxxxxx',
 'cokkie' =&gt; true,
 ));

// Get User ID
$user = $facebook-&gt;getUser();
if ($user) {
  try {
    // Proceed knowing you have a logged in user who's authenticated.
    $user_profile = $facebook-&gt;api('/me');
  } catch (FacebookApiException $e) {
    error_log($e);
    $user = null;
  }
}
?&gt;
 //what to do now?
</code></pre>

<p>I've only done this.</p>
