Facebook api pending friend request sent by user

こ雲淡風輕ζ 提交于 2021-01-29 11:10:20

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!