Print this page

“Invalid Token” error when trying to authenticate Twitter

Knowledge Article Number 000230546
Description End users are seeing “Invalid Token” error when trying to authenticate Twitter when using AppExchange App "Salesforce for Twitter and Facebook" (sometimes called: "Salesforce for Social Media").  

Steps to Reproduce:
 
1. Login into Salesforce

2. Go to “Salesforce for Social Media” App

3. Click on Social Setup

4. Click on Twitter Name

5. “Grant Twitter Access” button

6. Click Accept

7. Enter Twitter username / password & click “Authorize App”

8. Salesforce end user sees the following error in Salesforce:

“Invalid Token”
Resolution To resolve error, please download and install latest "Salesforce for Twitter and Facebook".  The known issue is fixed in "Salesforce for Twitter and Facebook" v5.2.6 and higher.

If your org is running older "Salesforce for Twitter and Facebook" version and cannot immediately apply patch v5.2.6, please work around with the following steps:


AppExchange App "Salesforce for Twitter and Facebook" (sometimes called: "Salesforce for Social Media") only accepts twitter usernames containing lowercase letters.  Using uppercase letters in Twitter username will generate “Invalid Token” error.  To workaround error, please update Twitter username with the following steps:

1.  Log into Twitter directly: http://twitter.com

2.  Go to https://twitter.com/settings/account

3.  Please ensure that Twitter username only contains lowercase letters.  If you see any uppercase letter in Twitter username, please change to lower case.  For example, suppose we have the following Twitter usernames: 

username example 1: SFDCTest
username example 2: sfdctest

When trying to authorize from Salesforce to Twitter using example 1 (SFDCTest), end users will see “Invalid Token”.  In above example, end user must change twitter username to sfdctest . Save.

4. Login into Salesforce

5. Go to “Salesforce for Social Media” App

6. Click on Social Setup

7. Click on Twitter Name

8. “Grant Twitter Access” button

9. Click Accept

10. Enter Twitter username / password & click “Authorize App”




promote demote