如何通过应用程序ID和密码获取Facebook应用程序的名称?

时间:2012-06-15 21:22:12

标签: facebook-php-sdk facebook-apps

我如何获取应用的名称,假设我有使用Facebook PHP SDK的应用ID和应用密码?

1 个答案:

答案 0 :(得分:11)

https://graph.facebook.com/[APP ID]

示例:https://graph.facebook.com/102452128776

{
   "id": "102452128776",
   "name": "FarmVille",
   "description": "Join your friends in FarmVille, the world\u2019s biggest farming game! Grow hundreds of crops, trees, and animals! More added every day",
   "category": "Games",
   "subcategory": "Simulation",
   "link": "https://www.facebook.com/apps/application.php?id=102452128776",
   "namespace": "onthefarm",
   "icon_url": "http://photos-g.ak.fbcdn.net/photos-ak-snc7/v85005/144/102452128776/app_2_102452128776_798621234.gif",
   "logo_url": "http://photos-f.ak.fbcdn.net/photos-ak-snc7/v85005/144/102452128776/app_1_102452128776_1417137715.gif",
   "company": "Zynga",
   "daily_active_users": "4200000",
   "weekly_active_users": "10000000",
   "monthly_active_users": "21400000",
   "mobile_web_url": "http://express.farmville.com/fx/"
}

在PHP SDK中,这是$ facebook-> api('/'。$ APP_ID);