Overview

Namespaces

  • None
  • PHP

Classes

  • BaseFacebook
  • Facebook

Exceptions

  • FacebookApiException
  • Overview
  • Namespace
  • Class
  • Tree

Class FacebookApiException

Thrown when an API call returns an exception.

Exception
Extended by FacebookApiException
Author: Naitik Shah <naitik@facebook.com>
Located at base_facebook.php
Methods summary
public
# __construct( array $result )

Make a new API Exception with the given result.

Make a new API Exception with the given result.

Parameters

$result
array
The result from the API server
public array
# getResult( )

Return the associated result object returned by the API server.

Return the associated result object returned by the API server.

Returns

array
The result from the API server
public string
# getType( )

Returns the associated type for the error. This will default to 'Exception' when a type is not available.

Returns the associated type for the error. This will default to 'Exception' when a type is not available.

Returns

string
public string
# __toString( )

To make debugging easier.

To make debugging easier.

Returns

string
The string representation of the error
Methods inherited from Exception
getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Properties summary
protected $result
#

The result from the API server that represents the exception information.

The result from the API server that represents the exception information.

Properties inherited from Exception
$code, $file, $line, $message
Facebook PHP SDK (v.3.1.1) API documentation generated by ApiGen 2.5.0