Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Identifying a global Facebook page from API

Facebook recently launched Global pages for brands:

http://www.facebook-studio.com/news/item/announcing-a-new-pages-structure-for-global-brands

These pages have regional aliases. For example, http://www.facebook.com/asos.france points to the ASOS global page, but only shows French content.

My questions is: is it possible to identify via Facebook's API, whether a given page URL is

  1. A regional version of a global page, or
  2. A standard page
like image 964
eli Avatar asked Jan 08 '13 17:01

eli


1 Answers

Querying this with the Graph API will get you there:

/PAGE_NAME_OR_ID?fields=global_brand_children.username,global_brand_parent_page

Three examples to replace PAGE_NAME_OR_ID with in the above query:

  • asos.france returns a JSON object with global_brand_parent_page populated. It is a regional alias. The top-level global page is given.
  • asos returns a JSON object with an array of global_brand_children. It is the top level global page. The children show all the regional aliases.
  • cocacola returns only an id. This is a stand-alone page.
like image 56
cpilko Avatar answered Oct 13 '22 11:10

cpilko