Warning (2): file_get_contents(https://graph.facebook.com/POWROF/albums?fields=name,cover_photo,updated_time&access_token=1097727266956263|6acadb482f21a54e5189a8da34987516): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
[APP/Controller/Component/FacebookPhotosComponent.php, line 34]
public function getAlbums() { $url = 'https://graph.facebook.com/POWROF/albums?fields=name,cover_photo,updated_time&access_token='.$this->app_id.'|'.$this->app_secret; $resp = file_get_contents($url);
$url = 'https://graph.facebook.com/POWROF/albums?fields=name,cover_photo,updated_time&access_token=1097727266956263|6acadb482f21a54e5189a8da34987516'
$http_response_header = array(
(int) 0 => 'HTTP/1.1 400 Bad Request',
(int) 1 => 'error-mid: 5c47022e15492b9f2a6a004af6cc76a7',
(int) 2 => 'Vary: Origin',
(int) 3 => 'Vary: Accept-Encoding',
(int) 4 => 'cross-origin-resource-policy: cross-origin',
(int) 5 => 'x-app-usage: {"call_count":0,"total_cputime":0,"total_time":0}',
(int) 6 => 'Content-Type: text/javascript; charset=UTF-8',
(int) 7 => 'WWW-Authenticate: OAuth "Facebook Platform" "invalid_request" "(#100) Object does not exist, cannot be loaded due to missing permission or reviewable feature, or does not support this operation. This endpoint requires the 'pages_read_engagement' permission or the 'Page Public Content Access' feature or the 'Page Public Metadata Access' feature. Refer to https://developers.facebook.com/docs/apps/review/login-permissions#manage-pages, https://developers.facebook.com/docs/apps/review/feature#reference-PAGES_ACCESS and https://developers.facebook.com/docs/apps/review/feature#page-public-metadata-access for details."',
(int) 8 => 'Access-Control-Allow-Origin: *',
(int) 9 => 'facebook-api-version: v16.0',
(int) 10 => 'Strict-Transport-Security: max-age=15552000; preload',
(int) 11 => 'Pragma: no-cache',
(int) 12 => 'Cache-Control: no-store',
(int) 13 => 'Expires: Sat, 01 Jan 2000 00:00:00 GMT',
(int) 14 => 'x-fb-request-id: AN68-oo_S3iZMNHEYYG05Mo',
(int) 15 => 'x-fb-trace-id: EL/Xdx7YJEC',
(int) 16 => 'x-fb-rev: 1019440441',
(int) 17 => 'X-FB-Debug: jX6fyFmFBRQSiN423OSar7NhR6VGK/70U0j08EN+6T/c7BCvS7+xuiPOfSbkyEJTAP8RtgzG23W3sTw8wgNzqA==',
(int) 18 => 'Date: Sun, 19 Jan 2025 23:24:41 GMT',
(int) 19 => 'X-FB-Connection-Quality: EXCELLENT; q=0.9, rtt=7, rtx=0, c=10, mss=1380, tbw=3222, tp=-1, tpl=-1, uplat=131, ullat=48',
(int) 20 => 'Alt-Svc: h3=":443"; ma=86400',
(int) 21 => 'Connection: close',
(int) 22 => 'Content-Length: 671'
)
file_get_contents - [internal], line ??
FacebookPhotosComponent::getAlbums() - APP/Controller/Component/FacebookPhotosComponent.php, line 34
FrontController::galeria() - APP/Controller/FrontController.php, line 2234
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118
Notice (8): Trying to get property of non-object [APP/Controller/Component/FacebookPhotosComponent.php, line 36]
$url = 'https://graph.facebook.com/POWROF/albums?fields=name,cover_photo,updated_time&access_token=1097727266956263|6acadb482f21a54e5189a8da34987516'
$http_response_header = array(
(int) 0 => 'HTTP/1.1 400 Bad Request',
(int) 1 => 'error-mid: 5c47022e15492b9f2a6a004af6cc76a7',
(int) 2 => 'Vary: Origin',
(int) 3 => 'Vary: Accept-Encoding',
(int) 4 => 'cross-origin-resource-policy: cross-origin',
(int) 5 => 'x-app-usage: {"call_count":0,"total_cputime":0,"total_time":0}',
(int) 6 => 'Content-Type: text/javascript; charset=UTF-8',
(int) 7 => 'WWW-Authenticate: OAuth "Facebook Platform" "invalid_request" "(#100) Object does not exist, cannot be loaded due to missing permission or reviewable feature, or does not support this operation. This endpoint requires the 'pages_read_engagement' permission or the 'Page Public Content Access' feature or the 'Page Public Metadata Access' feature. Refer to https://developers.facebook.com/docs/apps/review/login-permissions#manage-pages, https://developers.facebook.com/docs/apps/review/feature#reference-PAGES_ACCESS and https://developers.facebook.com/docs/apps/review/feature#page-public-metadata-access for details."',
(int) 8 => 'Access-Control-Allow-Origin: *',
(int) 9 => 'facebook-api-version: v16.0',
(int) 10 => 'Strict-Transport-Security: max-age=15552000; preload',
(int) 11 => 'Pragma: no-cache',
(int) 12 => 'Cache-Control: no-store',
(int) 13 => 'Expires: Sat, 01 Jan 2000 00:00:00 GMT',
(int) 14 => 'x-fb-request-id: AN68-oo_S3iZMNHEYYG05Mo',
(int) 15 => 'x-fb-trace-id: EL/Xdx7YJEC',
(int) 16 => 'x-fb-rev: 1019440441',
(int) 17 => 'X-FB-Debug: jX6fyFmFBRQSiN423OSar7NhR6VGK/70U0j08EN+6T/c7BCvS7+xuiPOfSbkyEJTAP8RtgzG23W3sTw8wgNzqA==',
(int) 18 => 'Date: Sun, 19 Jan 2025 23:24:41 GMT',
(int) 19 => 'X-FB-Connection-Quality: EXCELLENT; q=0.9, rtt=7, rtx=0, c=10, mss=1380, tbw=3222, tp=-1, tpl=-1, uplat=131, ullat=48',
(int) 20 => 'Alt-Svc: h3=":443"; ma=86400',
(int) 21 => 'Connection: close',
(int) 22 => 'Content-Length: 671'
)
$resp = false
$resp_decoded = null
FacebookPhotosComponent::getAlbums() - APP/Controller/Component/FacebookPhotosComponent.php, line 36
FrontController::galeria() - APP/Controller/FrontController.php, line 2234
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118
Warning (2): Invalid argument supplied for foreach() [APP/Controller/FrontController.php, line 2242]
FrontController::galeria() - APP/Controller/FrontController.php, line 2242
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118