Aaron
Aaron

Reputation: 41

Phonegap - How open 'Facebook send dialog' with the To field populated by Facebook UserId

I'm currently using https://www.npmjs.com/package/cordova-plugin-facebook4

var options  = {
    method: 'send',
    app_id:'262349611811256',  //Edited ID for Stackoverflow
    to: '12353404846137727'    //Edited ID for Stackoverflow
};
facebookConnectPlugin.showDialog(options,
    function (result) {
        alert("Posted. " + JSON.stringify(result));
      },
function (e) {
    alert("Failed: " + e);
});

The dialog opens but the To field isn't populated with the User.

Is there a way to open the 'send facebook send message dialog' from Phonegap Ios/Android?

Upvotes: 1

Views: 133

Answers (1)

cullimorer
cullimorer

Reputation: 755

When opening a Facebook send dialogue, can only be done via the desktop app and not via mobile.

Upvotes: 1

Related Questions