是否有API相当于Facebook Access令牌linter /调试器? [英] Is there an API equivalent of the Facebook Access Token linter/debugger?

查看:97
本文介绍了是否有API相当于Facebook Access令牌linter /调试器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可以以编程方式调用的 Facebook访问令牌/调试器的图形API相当于

Is there a graph API equivalent of the Facebook Access Token linter/debugger that I can call programmatically?

linter很好。它告诉您有关您所拥有的令牌的各种酷炫信息,例如授予的权限(通过我/权限可用),发布和到期日期,应用程序ID,应用程序名称,个人资料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/

这篇关于是否有API相当于Facebook Access令牌linter /调试器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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