OAuth更改中断获取Cookie

Using PHP I used to be able to retrieve a cookie for the active user by doing this:

 //Returns an array: ([access_token] =>[base_domain] =>[expires] =>[secret] =>[session_key] =>[sig] =>[uid] =>)
    public static function getFacebookCookies() {
      $args = array();
      parse_str(trim($_COOKIE['fbs_MY_API_KEY'], '\\"'), $args);
      ksort($args);
      $payload = '';
      foreach ($args as $key => $value) {
        if ($key != 'sig') {
          $payload .= $key . '=' . $value;
        }
      }
      if (md5($payload . MY_API_SECRET) != $args['sig']) {
        return false;
      }
      return $args;
}

But this no longer seems to work. I'm using the PHP SDK, is there anyway to get these cookies now, or am I out of luck?

The cookie fbs_APP_ID is now replaced with fbsr_APP_ID (note the r). The value is now a signed_request rather than containing the access token. If you review the docs there is a php example to parse this data to get a JSON array.