Skip to main content
This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Error occurs while configuring Twitter integration

SA-61496

Summary



Error occurs while configuring Twitter integration for Pega Customer Service (CS) 7.31. This occurs when authorizing an OAuth profile.


Error Messages



The request token for this page is invalid. It may have been already been used, or expired because it is too old. Please go back to the site or application that sent you here and try again; it was probably just a mistake.


Steps to Reproduce

  1. Create a new Twitter application.
  2. Generate tokens and perform all the required configurations for Twitter.
  3. Launch the Interaction portal.
  4. Navigate to Operator Preferences.
  5. Authorize for Twitter.


Root Cause



Due to recent updates from Twitter, callback URLs are mandatory to authorize the Twitter application. 
Pega generates the callback URLs dynamically in the 'pyGetRequestToken' activity (if changes from the platform are received). Additionally, the same callback URL must be provided explicitly in the Twitter application.

For example: https://<LocalHost>/prweb?pyActivity=@baseclass.GenerateTwitterTokens 

For this, the requestor and thread ID must be passed dynamically. As part of implementation, the URL is passed accordingly and the required parameters are set dynamically in the 'GenerateTwitterTokens' and 'pyGetAccessTokens' activities.



Resolution



Apply HFix-45793.

Additional Steps:
The callback URL format is 'http://<LocalHost:portnumber>/prweb?pyActivity=Data-Admin-Security-OAuth-Client.GenerateTwitter'. This is generated in Pega. To authorize the Twitter application, the URL generated in Pega must be provided in the Twitter application callback URL.



 
Suggest Edit

Published September 12, 2018 - Updated December 2, 2021

Did you find this article helpful?
Did you find this content helpful? Yes No

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us