Y8 Account SDK provides the ability to send a friend request from your application

Friends dialog

Integration Example

JavaScript SDK

  method: "friends",
  redirect_uri: "<redirect URI>",
  id: "<user PID>"
}, function(response) {
  alert("it works!");


Parameter Description
redirect_uri The URL to redirect to after a person clicks a button on the dialog.
id PID of the user in the application

Reponse data

Parameter Description
action A boolean that is set to 1 if the friend was added, and 0 otherwise.