如何在PHP上识别出已卸载Facebook App [英] How to recognize on PHP that Facebook App was uninstalled

查看:57
本文介绍了如何在PHP上识别出已卸载Facebook App的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过Facebook PHP SDK开发该应用程序.如果用户从Facebook页面上卸载了该应用程序,那么我将从我的应用程序中删除相关数据.有什么方法可以识别通过PHP卸载应用程序?

I am developing the application by Facebook PHP SDK. If a user uninstalls this application from the Facebook page, I'm going to delete related data from my app. Is there any way of recognizing uninstallation of an application by PHP?

推荐答案

来自有关身份验证的文档:

应用取消授权

当您的应用程序用户将其从应用程序信息中心"中删除或阻止资讯提供中的应用程式,只要指定一个在开发人员应用中取消对回调URL的授权.在移除应用程序期间,我们将发送一个包含单个参数的HTTP POST请求,Signed_request,其中包含刚刚使用的用户的用户ID(UID)删除了您的应用.您将不会在此收到用户访问令牌请求,所有现有的用户访问令牌都将自动生成过期了.

When a user of your app removes it in the App Dashboard or blocks the app in the News Feed, your app can be notified by specifying a Deauthorize Callback URL in the Developer App. During app removal we will send an HTTP POST request containing a single parameter, signed_request, which contains the user id (UID) of the user that just removed your app. You will not receive an user access token in this request and all existing user access tokens will be automatically expired.

这篇关于如何在PHP上识别出已卸载Facebook App的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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