按名称获取应用程序ID

编程入门 行业动态 更新时间:2024-10-28 12:28:00
本文介绍了按名称获取应用程序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.

我有: apps.facebook/graffitiwall

我需要: graph.facebook/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

本文发布于:2023-10-26 17:04:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1530773.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   名称   ID

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!