Facebook php sdk:如何在注册到我的应用程序后删除用户

问题描述:

我正在使用Facebook php sdk来启用用户使用他们的Facebook帐户登录我的网络应用程序。在用户尝试使用他们的Facebook帐户注册后,我使用 Facebook.getSignedRequest(); 检索他们的详细信息,并将其添加到我的数据库。

I'm using the facebook php sdk to enable users signing into my web app using their facebook account. After a user tries to register using their facebook account, I'm retrieving their details using Facebook.getSignedRequest(); and adding them to my DB.

我的问题是在将新用户添加到我的数据库时发现错误,在这种情况下,我有兴趣从我的应用程序中回滚并删除它们 strong>。

My problem is in case an error is found during adding the new user to my DB, in which case I'm interested to roll back and delete them from my app on facebook.

如何实现?

用户可以删除您的应用程序。只要检查他是否在数据库中已经返回。

Only the user can remove your App. Just check if he is in the database already when he returns.