Facebook:有没有一种方法可以检查我是否具有某些权限? [英] Facebook: Is there a way to check that I have certain permissions?

查看:50
本文介绍了Facebook:有没有一种方法可以检查我是否具有某些权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始使用新的Graph API开发Facebook应用.

I started developing a Facebook app using the new Graph API.

我想检查我是否具有特定用户的某些权限(例如,例如 publish_stream ).我知道旧的REST API具有 users.hasAppPermission ,但在新的Graph API中看不到与此类似的任何东西.

I want to check if I have certain permissions, (say publish_stream for example) for a certain user. I know that the old REST API had users.hasAppPermission, but I don't see anything parallel to that in the new Graph API.

我该怎么做?

推荐答案

您将需要在 权限 表.如果您使用的是JS SDK,则可以使用 FB来运行它.Data.query() .

You will need to run FQL on permissions table. If you are using JS SDK you can run it with FB.Data.query().

这篇关于Facebook:有没有一种方法可以检查我是否具有某些权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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