You should use Requests Dialog with FB.ui to invite users with JavaScript SDK. BTW, FBJS will be deprecated same time as FBML.
Lee mas