PT Social Media Version 2.1 Upgrade
From ADF Docs
Back to PT Social Media
Contents
Overview
The following guide is upgrading from v2.0 to v2.1.
Custom Element Updates
PTSocialMedia Configuration
Add the following new fields to the Twitter API tab of the ptSocialMedia Configuration element:
- a Twitter API v1.1 Customer Key text field
- Type: text
- Field Name: apiTwitterCustomerKey
- Field Label: apiTwitterCustomerKey
- Description: The Customer Key you received when you registered your App with Twitter.
- Required: No
- Properties:
- Size: 40
- a Twitter API v1.1 Customer Secret text field
- Type: text
- Field Name: apiTwitterCustomerSecret
- Field Label: apiTwitterCustomerSecret
- Description: The Customer Secret you received when you registered your App on Twitter.
- Required: No
- Properties:
- Size: 40
- a Twitter API v1.1 POST oauth2/token URL text field
- Type: text
- Field Name: apiTwitterAuthTokenURL
- Field Label: apiTwitterAuthTokenURL
- Description: Twitter API Oauth token request URL.
- Required: No
- Properties:
- Size: 60
- Default Value: https://api.twitter.com/oauth2/token
App Configuration Updates
After the new fields have been added to the PTSocialMedia Configuration element:
- Go to the Social Media App Configuration Manager and click the "Edit Configuration" button.
- When the configuration form opens, go to the Twitter API tab, then add/update the the following fields with these new values:
- apiTwitterCustomerKey: {Your Twitter App Customer Key. more info... }
- apiTwitterCustomerSecret: {Your Twitter App Customer Secret. more info... }
- apiTwitterAuthTokenURL: https://api.twitter.com/oauth2/token
- apiTwitterSearch: https://api.twitter.com/1.1/search/tweets.json?q={{searchterm}}
- apiTwitterScreenName: https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name={{screenname}}
- apiTwitterProfileURL: https://twitter.com/{{screenname}}
- apiTwitterStatusURL: https://api.twitter.com/1.1/statuses/show/{{twitterid}}.json
- apiTwitterTweetURL: https://twitter.com/{{screenname}}/status/{{twitterid}}
- Then click "Submit".
- When the configuration page reloads click the "Reset ADF / App Configuration" button.
- Twitter App Registration Instructions
Application Code
- Rename directory "/ADF/apps/pt_socialmedia/" to "/ADF/apps/pt_socialmedia_v2_0/".
- Rename file "/ADF/apps/pt_socialmedia_v2_0/appBeanConfig.cfm" to "/ADF/apps/pt_socialmedia_v2_0/appBeanConfig.cfm.old".
- Download the PT Social Media v2.1 and export it into the "/ADF/apps/pt_socialmedia/" directory.
Reset the ADF for the server and site.
Site Customizations
During the application implementation customizations may have been created. Check under the "/_cs_apps/pt_socialmedia/" directory under you site to see if any customizations exists. If you do have site customizations, you'll need to update these accordingly.