Class Horde_Service_Facebook
Facebook Platform PHP5 client
Copyright 2004-2009 Facebook. All Rights Reserved.
Copyright (c) 2007 Facebook, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
For help with this library, contact developers-help@facebook.com
public
|
|
public
mixed
|
|
public static
string
|
|
public
|
|
public
|
|
public
mixed
&
|
#
callMethod( string $method, array $params = array() )
Calls the specified normal POST method with the specified parameters. |
public
array
|
#
callUploadMethod( string $method, array $params, string $file )
Calls the specified file-upload POST method with the specified parameters |
integer |
API_VALIDATION_ERROR
|
#
1
|
string |
REST_SERVER_ADDR
|
#
'https://api.facebook.com/method/'
|
string |
GRAPH_SERVER_ADDR
|
#
'https://graph.facebook.com'
|
string |
DATA_FORMAT_JSON
Data format returned to client code. |
#
'json'
|
string |
DATA_FORMAT_XML
|
#
'xml'
|
string |
DATA_FORMAT_ARRAY
|
#
'array'
|
public
boolean
|
$useSslResources
Use only ssl resource flag |
#
false
|
public
Horde_Service_Facebook::DATA_FORMAT_*
|
$dataFormat
Return format |