I've been searching for awhile and I cant find the right answer to this problem. I'm trying to integrate my website with facebook API. I need to get my pages url videos. To do so I used the manage_pages permission. Thus, as a result of my search, I found that I need my page id, to make a request to {page-id}/videos.
To get page-id I'm making a request as follow:
$response = $fb->get(
'/me/accounts',
$accessToken
);
(...)
$graphEdge = $response->getGraphEdge();
Now, the problem is: I don't know how to get my page ID from $graphEdge. I'm receiving a response of GraphEdge type, but i really cant to get my page Id. In the graph API tool, $page-id is just inside data field.
One last question: To get my page url public videos, Am I doing It right, Am I? Best Regards