API Reference

Friends.removeFriend

This function allows you to delete a friendship between 2 users.


Syntax

bool friends.removeFriend ( INT vhostId, INT uid1, INT uid2 = NULL )

Arguments

NameTypeRequiredDefault valueDescription
vhostIdINTRequirednoneThe ID of the application the users are in.
uid1INTRequirednoneThe ID of the first user that will have the friendship deleted.
uid2INTOptionalNULLThe ID of the second user that will have the friendship deleted.
NOTE:
If uid2 is not specified, then the current logged in user will be used as uid2.

Response

Upon success the response will be 1.

NameTypeDescription
responseINTThe response will be 1.

Sample Response

Code examples

0 comments

Be the first to comment on removeFriend.

Add a Comment

  • captcha