In this article you can get an idea about how to share a link to user wall with the uploaded photo in Facebook from Drupal sites. To share a link on Facebook, we need to use the Facebook API so we have to download Facebook SDK for PHP. Facebook SDK allows developers to get access to the Facebook API. First, you need to create an app (https://developers.facebook.com/apps), because to reach Facebook we need app id and a secret code.