Salesforce.getLoginUrl()

Get the URL on salesforce.com that a user should visit to allow/deny the specified Salesforce Developer app (i.e. your app).

This is the URL where you typically redirect a user in order for them to grant access to your Facebook app.

Usage

Hover over inputs/exits for more info.

var Salesforce = require('machinepack-salseforce-expanded');


// Get the URL on salesforce.com that a user should visit to allow/deny the specified Salesforce Developer app (i.e. your app).

Salesforce.getLoginUrl({

consumerKey: 'adf90878aKsloewurSDFIUFsdisoufsodfu',

callbackUrl: 'http://localhost:1337/auth/login',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

consumerKey required

The consumer key for your Salesforce app.

'adf90878aKsloewurSDFIUFsdisoufsodfu'
callbackUrl required

The callback URL where the end user will be redirected after visiting the login URL returned by this machine

'http://localhost:1337/auth/login'

Exits

error

An unexpected error occurred.

success

OK.