I use the PHP library for Facebook Connect.
The library is used as follows:
$facebook->api_client->METHOD
Here’s the documentation for how to unregister users from one’s Connect page: Connect.unregisterUsers
So, actually, I have everything I need, haven’t I? But I can’t manage to unregister users, though. How must I do this?
$facebook->api_client->unregisterUsers()
Which parameters? What are the email hashes?
Email hashes are MD5 signatures computed from an email address, used to avoid exposing the user’s plain email address and still allow identity matching.
The idea of registerUsers is that you can pass a collection of email hashes to Facebook (from users registered on your site) and it will create an association between existing users on your site and those users Facebook accounts.
unregisterUsers will remove that association for the users you select (by passing also an array of email hashes of those users). It should be called when a user deletes your account on your site.