Facebook graph API does not return category_list for specific pages

I request a popular page using the facebook api chart to retrieve a list of categories:

https://graph.facebook.com/v2.9/159460420880667/?fields=category_list,category&access_token= $ mytoken

The result shows only the main category without returning the category_list field

{
   "category": "Games/Toys",
   "id": "159460420880667"
}

The same query works fine for another page:

https://graph.facebook.com/v2.9/197958940234297/?fields=category_list,category&access_token= $ mytoken

{'category': 'Sports Club',
 'category_list': [{'id': '189018581118681', 'name': 'Sports Club'},
  {'id': '184405378265823', 'name': 'Gym/Physical Fitness Center'}],
 'id': '197958940234297'}

My question is why the full list of categories was not returned in the first query and why do I get the second (not the first) category as the main category?

+4

Source: https://habr.com/ru/post/1684678/


All Articles