是否有可能通过Graph或REST API获取Facebook应用的扩展权限状态?

问题描述:

我想检查我的Facebook应用程序的用户的扩展权限的状态。我不想要求权限,我只想知道他们已经授予访问权限。这可能吗?是否有可能通过Graph或REST API获取Facebook应用的扩展权限状态?

我很高兴使用Graph或REST API在PHP或JS中执行此操作。

+0

看到http://*.com/questions/3219099/facebook-is-there-a-way-to-check -that -I-have-certain-permissions/3219976#3219976 – serg 2010-07-15 15:09:22

在JS SDK可以执行FQL query得到任何extended permission

FB.Data.query('select publish_stream, email from permissions where uid={0}', uid) 
.wait(function(rows) { 
    var permissions = []; 
    if (rows.publish_stream) permissions.push("publish to stream"); 
    if (rows.email) permissions.push("send email"); 
    alert("Can "+permissions.join(", "); 
}); 
+0

如何使用facebook php sdk知道这些信息? – 2013-02-21 10:34:14