使用Facebook API,在添加到粉丝专页(标签应用)的自定义应用中,如何获取粉丝页ID?
这就是我想要实现的目标:
答案 0 :(得分:3)
从已解析的签名请求(到选项卡iFrame),您可以获取页面ID - 内容类似于以下内容(PHP print_r的输出):
stdClass Object
(
[algorithm] => HMAC-SHA256
[issued_at] => xxxxxxxxxx
[page] => stdClass Object
(
[id] => FAN_PAGE_ID // target page id
[liked] => 1 // is the user a fan
[admin] => // is the user an admin
)
[user] => stdClass Object
(
[country] => ie
[locale] => en_GB
[age] => stdClass Object
(
[min] => 21
)
)
)
有关更多信息,请参阅: http://developers.facebook.com/docs/authentication/signed_request/