how do invite someone and set their FBML too?

Nov 19, 2007 at 1:26 AM
for regular facebook apps, i have noticed that someone can send me an action for an application that i don't have installed. then i get this notification to install this app SO i can receive the action. how is this done throught the api? i am creating an app that sets certain FBML of your chosen friends, but for those chosen friends, if they don't have the app installed, i want it to invite them and if they do add it, the FBML that i sent to them before they installed it is not lost and shows up.

i think most apps do this, where i've seen "install XXX app so you can receive your XXX"...