This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Publish to Facebook2: Line 350

By: a guest on Jun 6th, 2013  |  syntax: PHP  |  size: 0.30 KB  |  views: 89  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. $json_response = json_decode($response['body']);
  2. if (is_object($json_response) and property_exists($json_response, 'error')) {
  3.                 throw new FacebookUnexpectedErrorException((is_object($json_response->error) and property_exists($json_response->error, 'message')) ? $json_response->error->message : '');
  4. }
clone this paste RAW Paste Data