I have a requirement to post a comment on a Facebook user's timeline from our Drupal website. In submitting a Drupal form, I have to post a comment on Facebook. We need to access Facebook api so we have to download Facebook SDK for PHP. Facebook SDk allows developers to access the Facebook api ie to post the comment on Facebook. Also create an app on Facebook, once you create an app it will generate a Facebook app id and Facebook secret code.