按名称获取应用程序ID
我需要获取应用程序的类别.为了从图api获取该信息,我需要获取它的应用程序ID.但是,我只能访问URL中的应用程序名称.
I need to get an application's category. In order to get that information from the graph api I need to get it's application id. However, all that I have access to is the application name that is in the URL.
我有: http://apps.facebook.com/graffitiwall
我需要: https://graph.facebook.com/2439131959
反正有将"graffittiwall"翻译成"2439131959"吗?
Is there anyway to translate "graffittiwall" into "2439131959"?
注意:我不能简单地使用名称,因为图形API仅 按名称查找用户和页面.
Note: I cannot simply use the name because the graph API only looks up users and pages by name.
不幸的是,我认为Facebook Graph API无法通过应用程序的名称检索应用程序的信息.您需要具有该应用程序的唯一ID,才能访问其基本信息.
Unfortunately, I don't think retrieveing an application's info through application's name is possible with Facebook Graph API. You need to have the unique id of the application in order to access its basic information.
一个有趣的想法是通过用户的应用程序请求来查找不同应用程序的ID.然后,您可以从应用程序ID中获取应用程序的类别.
An interesting idea would be going through users' apprequests to find the ids of different application. Then you can get the category of the application from app id.