问题
I dont find any graph api or fql query to retrieve the list of pending friend request sent by the user. Is there any way to retrieve it ?
回答1:
There's an FQL table called friend_request which shows the pending friend requests sent by or to the current session user.
However, it does not allow you to retrieve the list of pending friend request sent by the user because the only indexable field in this table is uid_to
. This means that you can read the list of pending friend request sent to the current user, but it doesn't work the other way.
You can use the following query to retrieve the list of pending friend request sent to the current user:
SELECT uid_from FROM friend_request WHERE uid_to = me()
来源:https://stackoverflow.com/questions/20748509/facebook-api-pending-friend-request-sent-by-user