I’m looking to add the functionality to invite friends to my game using:
facebook.showDialog("apprequests", {title="Invite", message="Come and play our game", ids=inviteIDs})
where inviteIDs is a string of facebook IDs seperated by commas:
inviteIDs = "123456798,987654321,95175348"
I’m having a few problems. The dialog does appear, and I can send invites ok, but it doesn’t show me the users whose ID I have provided. Instead I just get a random selection of my friends.
In addition to this, it splits the list into 2 parts “Ask Friends” and “Invite Friends”.
The friends in the “Ask Friends” section are mostly (but not entirely) people who have already installed the game and logged into Facebook. We don’t want this list, since we have no reason at the moment for people to contact friends who are already playing, we just want to use the dialog to allow invitations to be sent to new friends.
Does anyone know if there is a way to only allow the dialog to show the “Invite Friends” list?