As Gohan Ozturk said, you can specify (display: 'iframe') for Apprequests.
To do this, you will need to provide an access token for the user:
FB.ui({ method: 'apprequests', display: 'iframe', access_token: Users Access Token Here, title: 'Sample Title', message: 'Sample Message', data: 'some data here', filters: ['all'], }, function(response) { if (response && response.request_ids) { alert('Request was sent'); } else { alert('Request was not sent'); } });
You will also want FB.init () via the JSDK, but you can do this without using it to control access tokens and authentication,
FB.init({ appId: 'Application Id', status: false, cookie: false, xfbml: false });
This worked for me when I use php for authentication, but still need access to the fb.ui functions from javascript sdk.
display: "iframe" - should work for all methods of the dialogue "friends", "feed", "send", etc.
source share