开发者

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 开发者_如何学Goof those friends with without going through the process on the Facebook.com website.

Is this possible via the API?


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


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


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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜