I am a novice and though I manage to get things done, this issue is out of my reach.
Issue related to Facebook
https://graph.facebook.com/211255505590483/albums?fields=id
The above link displays the list of albums of a Facebook page. I want to extract all the "id" and put them in a dropdown list.
e.g.:
<option value="123456789">123456789</option>
This section added after response by @Mathieu to remove confusion:
Question: I need help to extract just the Album IDs which I can use for the dropdown list. I have tried "preg_match" but I am unable to isolate and get just the Album IDs. I am getting the entire content either as a single line or with line breaks and that includes "created_time" part also.
I already have a PHP script which can display all the photos of an album (of a Facebook Page) when I directly put the album "id" in it.
My 'plan one' is that whenever a visitor comes to my website, my page will fetch the list of album "id" and the photos can be viewed.
My 'plan two' is that the page can use a cron to fetch the list of album "id" once a day and store in a database and this will prevent multiple calls to Facebook.
I feel that since the list of album "id" is available through the above link, there would Not be any need for AccessToken, Secret, etc.