用户授予扩展权限后 Facebook 不会通知我
我正在开发一个 Facebook 应用程序,需要一些扩展权限。问题是,当用户授予这些权限时,Facebook 不会自动 ping 我的应用程序。我必须手动查询它们,或者用户必须按确认按钮才能将它们发送给我。
我的问题是如何让 Facebook 在权限更改时自动 ping 我。我正在 Rails 中使用 Facebooker 插件。
I am developing a Facebook App which requires some extended permission. The problem is that Facebook doesn't automatically ping my app when those permissions are granted by the user. I have to manually query for them or the user must press a confirmation button to send them to me.
My question is how can I enable Facebook to ping me automatically when permissions are changed. I am using the Facebooker plugin in Rails.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您正在开发画布应用程序,当用户授予扩展权限时,您将开始收到一个参数,指定授予了哪些权限 (fb_sig_ext_perms)。
您还可以使用 FBJS 函数 Facebook.showPermissionsDialog,它将执行一个回调,告诉您用户已授予哪些权限。此处的文档: http://wiki.developers.facebook.com/index.php /Facebook.showPermissionDialog
对于 Facebook 连接,您可以指定用户授予(或选择不授予)权限时的 JavaScript 回调。此处的文档: http://developers.facebook.com/ docs/?u=facebook.jslib.FB.Connect.showPermissionDialog
If you are developing a canvas application when a user has granted extended permissions you will begin to receive a parameter specifying which permissions were granted (fb_sig_ext_perms).
You can also use the FBJS function Facebook.showPermissionsDialog which will execute a callback that tells you which permissions the user has granted. Documentation here: http://wiki.developers.facebook.com/index.php/Facebook.showPermissionDialog
For Facebook connect, you can specify a javascript callback for when the user has granted (or chosen not to grant) permission. Documentation here: http://developers.facebook.com/docs/?u=facebook.jslib.FB.Connect.showPermissionDialog