Brandon
Brandon

Reputation: 2125

Any way to unfriend or delete a friend using Facebook's PHP SDK or API?

I want to be able to authenticate the user, list out all their friends and give them the ability to unfriend / remove some of those friends with without going through the process on the Facebook.com website.

Is this possible via the API?

Upvotes: 4

Views: 4367

Answers (3)

Julio Popócatl
Julio Popócatl

Reputation: 782

What you can do its create a popup to m.facebook/userid for each friend.

When the user clicks on a friend the popup opens and there they can unfriend that person, that is a few clicks and its totally allowed by facebook.

<a href="http://m.facebook.com/userid" 
         onClick="window.open(this.href, this.target, 'width=500,height=600'); 
         return false;">
Friend Name</a>

Upvotes: 1

PsyChip
PsyChip

Reputation: 89

Currently no way to remove friends programmatically but fb's mobile design can be easily manipulated by a php spider.

Upvotes: 2

Igy
Igy

Reputation: 43816

There is no API available to add or remove friends programmatically.

What is available is a dialog box your app can use to help users send friend requests, but this still requires direct user interaction

Upvotes: 4

Related Questions