问题描述
是否有与 Facebook 访问令牌 linter/debugger 等效的图形 API,我可以通过编程方式调用?
Is there a graph API equivalent of the Facebook Access Token linter/debugger that I can call programmatically?
绒毛很好.它会告诉您有关您拥有的令牌的各种很酷的信息,例如授予的权限(我可以通过 me/permissions
获得)、发行日期和到期日期、App ID、App 名称、配置文件Id、用户 ID、用户名,如果它是有效的(如果我尝试调用 /me
并观察返回的异常,我可以使用它)和来源.
The linter is nice. It tells you all sorts of cool information about the token you have, such as the permissions granted (available to me via me/permissions
), the issue and expiration dates, the App ID, App name, profile Id, User Id, User Name, if it is valid (available to me if I try to call /me
and watch for the exception returned), and the origin.
App ID: APP ID : APP NAME
Profile ID: PAGE NAME
User ID: ID : NAME
Issued: 1328916821 : 3:33 pm Feb 10 2012
Expires: 1334100821 : 4:33 pm Apr 10 2012
Valid: True
Origin: Web
那怎么样?有没有一种程序化的方式来获取这些信息,而不必求助于对 linter 工具的屏幕抓取?
So how about it? Is there a programmatic way to get this info without having to resort to screenscraping the linter tool?
推荐答案
现在可以使用 debug_token
端点
https://developers.facebook.com/docs/authentication/access-token-debug/
这篇关于是否有与 Facebook 访问令牌 linter/调试器等效的 API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!