What are some potential pitfalls when using the new Facebook SDK in PHP for posting on a Facebook fan page?

One potential pitfall when using the new Facebook SDK in PHP for posting on a Facebook fan page is not properly handling errors or exceptions that may occur during the posting process. To solve this issue, you should implement error handling to catch any exceptions and handle them appropriately, such as logging the error or displaying a user-friendly message.

try {
  // Code to post on Facebook fan page using the new Facebook SDK
} catch (Facebook\Exceptions\FacebookResponseException $e) {
  echo 'Graph returned an error: ' . $e->getMessage();
} catch (Facebook\Exceptions\FacebookSDKException $e) {
  echo 'Facebook SDK returned an error: ' . $e->getMessage();
}