按名称获取应用程序ID [英] Get application id by name

查看:128
本文介绍了按名称获取应用程序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.

这篇关于按名称获取应用程序ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆