This document refers to a feature that was removed after Graph API v1.0.
Graph API Version

/{user-id}/friendrequests

A person's pending friend requests.

Reading

Graph API Explorer
GET /v2.9/me/friendrequests HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
$request = new FacebookRequest(
  $session,
  'GET',
  '/me/friendrequests'
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
/* handle the result */
/* make the API call */
FB.api(
    "/me/friendrequests",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/me/friendrequests",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
// For more complex open graph stories, use `FBSDKShareAPI`
// with `FBSDKShareOpenGraphContent`
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/me/friendrequests"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];

Permissions

  • A user access token with read_requests permission is required to view the current person's received friend requests.

Fields

NameDescriptionType

from

The person who sent the friend request

User

to

The person to whom the friend request was sent. This will always be the current user.

User

created_time

Time at which the friend request was created

datetime

message

Message provided by the sender when they sent the request

string

unread

Whether the user has read the friend request or not.

boolean

Publishing

You can't publish using this edge. The Friends Dialog should be used if you want to integrate the ability to add someone as a friend in your app.

Deleting

You can't delete using this edge.

Updating

You can't update using this edge.