Use this function to check the logged user is a friend of any other user. Here Viewer is logged user object and user is the one who want to check. $viewer->membership()->getRow($user);
Use this function to check the logged user is a friend of any other user. Here Viewer is logged user object and user is the one who want to check. $viewer->membership()->getRow($user);