In my facebook game I’m trying to create a system where a user can invite their friend to the game, I want it so that if they accept the invite then they both get rewarded I have read the API docs but not quite sure how to link who invited who.
Any help appreciated
Thanks,
Jack.
Per: https://developers.facebook.com/docs/reference/dialogs/requests/
You know the request id from the callback. You know who sent the request by the id of the current person logged in. You know the ids of who was sent an invite. Store that information in your datastore.
At the time you delete the invites when the user comes back, you know the request id and the new user’s id.
But I remember reading somewhere that the user sending the invite cannot get a bonus for doing so.