function _facebook_album_build_api_request in Facebook Album 7.3
Same name and namespace in other branches
- 7.2 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
4 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_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 537
Code
function _facebook_album_build_api_request($call_path = '', $parameters = []) {
$query = http_build_query($parameters);
return $call_path . '?' . $query;
}