开发者_Python百科Is there a way to delete all friends requests via API?
First get a list of Friends Requests and I could use loop to delete each one via API, FQL or something?
Thanks.
Facebook just provide access to get data to you from its tables. You cannot change any thing. I think it is impossible. Even if it is possible then it is totally illegal. You can only retrieve information from facebook tables. You cannot do any other activity with those tables.
in this page http://developers.facebook.com/docs/reference/dialogs/requests/
they said that
To read the requests sent to the user:
GET /me/apprequests/
Or, you can read a request if you know the request id:
GET /ID/
To delete a request:
DELETE /ID/
but this will just work for the same application not for all application
You can delete app_requests from friends, but not friend requests.
精彩评论