function _facebook_album_fetch_application_access_token in Facebook Album 7.3
Same name and namespace in other branches
- 7.2 facebook_album.admin.inc \_facebook_album_fetch_application_access_token()
Build and make the api call for retrieving application access tokens from the facebook api.
Parameters
$app_id: The application ID specified in the settings menu
$app_secret: The application secret specified in the settings menu
Return value
mixed A response rendered as an array
1 call to _facebook_album_fetch_application_access_token()
- facebook_album_admin_form_submit in ./
facebook_album.admin.inc - Implements hook_admin()
File
- ./
facebook_album.admin.inc, line 114 - facebook_album.admin.inc Facebook Album administration pages.
Code
function _facebook_album_fetch_application_access_token($app_id, $app_secret) {
$url = _facebook_album_build_api_request(API_AUTH_PATH . 'access_token', array(
'client_id' => $app_id,
'client_secret' => $app_secret,
'grant_type' => 'client_credentials',
));
return _facebook_album_fetch_api_response($url);
}