user966391
user966391

Reputation: 161

how to ban a facebook user from a facebook application, through api

We are having a facebook App we have detected some abusive users so we want to stop them from logging into our app, Any thoughts? There are examples given but Fb docs say those api's are deprecated now

Upvotes: 0

Views: 646

Answers (1)

andyrandy
andyrandy

Reputation: 73984

You could just detect them on your own and set a flag in your database. They will still be able to use Facebook Login, but they will not be able to do anything in your App if they are flagged.

Either way, i did some Google research and found out that it may be possible with a simple POST (or DELETE) request to the /app-id/banned endpoint:

BAN

https://graph.facebook.com/{app-id}/banned

POST parameters:

  • access_token (A simple App Access Token)
  • uid (comma separated list of user IDs)

UNBAN

https://graph.facebook.com/{app-id}/banned/{user-id}

DELETE request, only access_token as parameter


It is not really documented though, but easy to test.

Upvotes: 1

Related Questions