You do not really state what you are trying to achieve.
For shareAsync 'intent' has no effect in the IG api (yet), it is for future features. (This is not related to this plugin, it is decided by FG). So setting Invite/Challenge etc will always pop an share window currently. There is also no callback for this function.
There is another function called chooseAsync which posts a message to the context. But that does not sounds like the function you want either.
There is also matchmaking functions as well.
But I think you have to study the api references to find out which function you really want to use here.
For the functions that are not part of the plugin you can just call them via the browser->javascript