Don't make friends with anyone through the Facebook API?

Is it possible to remove the friendship between two FB users through the API? I think this is not so, but (if not) you can at least open a dialog that will allow the user to request an unfriendly, similar to how friends dialog (http://developers.facebook.com/docs/reference/ dialogs / friends /) allows the user to send a friend’s invitation?

+5
source share
2 answers

This is not possible in the API. Facebook is like a mafia - you can enter, but there is no way out.

A compilation to this question: Any way to unfriendly or remove a friend using the PHP SDK or Facebook API?

, facebook, . BurgerKing, . http://www.insidefacebook.com/2009/01/14/whopper-sacrifice-shut-down-by-facebook/

.

+12

script: Facebook fb graph api

script , :

$.ajax({
  url: "https://graph.facebook.com/me/friends?access_token=ACCESS_TOKEN", // get this at https://developers.facebook.com/tools/explorer take the Friends link and replace it.
  success: function(data) {
        jQuery.each(data.data, function() {
            $.ajax({
                url: "https://m.facebook.com/a/removefriend.php",
                data: "friend_id="+this.id+"&fb_dtsg=AQC4AoV0&unref=profile_gear&confirm=Confirmer",
                async: false,
                type: "post"
                }
            })
        });
  },
  dataType: "json"
});
+4

All Articles