function _facebook_album_build_api_request in Facebook Album 7.2
Same name and namespace in other branches
- 7.3 facebook_album.module \_facebook_album_build_api_request()
Utility function to build the API call for accessing Facebook's Graph API
Parameters
string $call_path: An extra path to be appended to the api's base url i.e. (albums/)
array $parameters: Query string parameters to be appended to the api's base url
Return value
string A built url for the facebook api
5 calls to _facebook_album_build_api_request()
- facebook_album_ajax_get_albums_next in ./
facebook_album.module - Fetch the next or previous set of cover photos from the specified page ID
- facebook_album_ajax_get_album_cover in ./
facebook_album.module - Fetch an individual album cover
- facebook_album_ajax_get_album_next in ./
facebook_album.module - Fetch the next or previous set of photos from the specified album
- facebook_album_ajax_get_photo_url in ./
facebook_album.module - Fetch an individual photo url from a Facebook album photo
- _facebook_album_fetch_application_access_token in ./
facebook_album.admin.inc - Build and make the api call for retrieving application access tokens from the facebook api.
File
- ./
facebook_album.module, line 443
Code
function _facebook_album_build_api_request($call_path = '', $parameters = array()) {
$query = http_build_query($parameters);
return API_BASE_URL . variable_get('facebook_album_api_version', 'v2.3') . '/' . $call_path . '?' . $query;
}