If my Facebook app knows that an app user (FB ID = foo) has sent an app request (request ID = bar) to another FB user (user2), is there a way to find the FB ID of user2?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In general this should be available prior to authentication of user2.
But there is some edge case:
If this is a request which involves only one recipient, you know the
idof that request (it’s passed to your canvas once user accepting it inrequest_idsURL argument) and don’t mind using application’saccess_tokenthis is pretty easy.Just get the details of request from Graph API:
Result will include all the request details including recipients list.
Beware, this method allow you to know to whom request was sent but it’s not allow you to ensure that visitor is the same person (it takes nothing to fake request accept if someone know request
id).BTW,
APPLICATION_ACCESS_TOKENmay be either one described in Authenticating as an App or an olderAPP_ID|APP_SECRETformat…