Usually this is because one or more of the fields has an incorrect value. Salesforce doesn’t tell which field it is, but that’s usually the issue.
Hi there, I haven’t even created any fields yet. I am still trying to initiate the connection.
I should’ve been more specific about which fields I meant. To initiate the connection, you have to set the values for consumer key, consumer secret, callback URL, login URL, etc. and if any of those values are incorrect, Salesforce will return that error. There’s more info about this in the documentation.
I understand. So if my salesforce is a whitelabel and has its own login URL, do I use the default or the custom one?
How long will it take to show if It is correct?
In the experience I’ve had, users should almost always use https://login.salesforce.com if it is a production instance, and https://test.salesforce.com if it is a sandbox. This does still apply if you are redirected to something like https://something.my.salesforce.com once you are logged in.
I don’t personally have experience using other URLs for this; you might want to talk to Salesforce about how to authenticate with the REST API if login.salesforce.com does not work (assuming it’s a production instance).
As for how long it takes, it depends on if you have changed anything on your app in Salesforce. App changes in Salesforce (for example, getting a new consumer key) usually update in less than half an hour in my experience. If you haven’t changed anything in Salesforce but you have changed a setting in WordPress, there shouldn’t be a delay.