\Horde_Service_Facebook_Request_Graph

Horde_Service_Facebook_Request_Graph:: encapsulate a request to the Graph API.

Copyright 2009-2017 Horde LLC (http://www.horde.org/)

Summary

Methods
Properties
Constants
__construct()
run()
upload()
No public properties found
No constants found
No protected methods found
$_facebook
$_http
$_method
$_params
$_endpoint
$_request
$_raw
N/A
No private methods found
No private properties found
N/A

Properties

$_http

$_http : \Horde_Http_Client

Type

\Horde_Http_Client

$_method

$_method : string

The current method being processed.

Type

string

$_params

$_params : array

The method parameters for the current method call.

Type

array

$_endpoint

$_endpoint : \Horde_Url

API Endpoint to call.

Type

\Horde_Url

$_request

$_request : 

The HTTP method to use for this request.

Type

$_raw

$_raw : string

Raw POST data.

Type

string

Methods

__construct()

__construct(\Horde_Service_Facebook  $facebook, string  $method = '', array  $params = array(), array  $options = array()) 

Const'r

Parameters

\Horde_Service_Facebook $facebook

The facebook client.

string $method

The API method to call.

array $params

Any parameters to send.

array $options

Additional options:

  • request (string) The HTTP method to use. DEFAULT: GET

run()

run() : mixed

Run this request and return the data.

Throws

\Horde_Service_Facebook_Exception

Returns

mixed —

Either raw JSON, or an array of decoded values.

upload()

upload(array  $options = array()) 

Perform a multipart/form-data upload.

Parameters

array $options

An options array:

  • params: (array) Form parameters to pass
  • file: (string) Local path to the file