Configuration settings for TwitterAdded by IBM | Edited by IBM on June 18, 2013 | Version 3 (Show original)
|Complete these configuration parameters to setup a social network connection for Twitter.
Before you begin you must register a Twitter application in order to obtain a username and password that grants access to the Twitter API. To register a new application that the WCM Social Media Publisher can use:
- Go to https://dev.twitter.com
- Log in and click Create an app.
- Click Add New Application.
- Under Application Info enter values for the following parameters:
This is the name of your application that will be displayed at the end of each post. For example, your company name.Application Description:
Enter a short description of the application.Website:
This is the URL to your website. For example: http://www.ibm.comCallback URL:
Set this to http://domain/wps/wcmsocial/servlet/oAuthCB/twitter where "domain" is your domain name.
- Read the terms and conditions and select I Agree.
- Enter the security/captcha information if required.
- Your Consumer Key and Consumer Secret will be displayed. Make a record of these.
- Click the Settings tab.
- In the Application Type section, set the Access property to Read and write.
- Click the Update this Twitter application's settings.
Once you have registered your application, you then create a new Credential Vault from the WebSphere
® Portal administration view where:
- the Consumer Key is specified as the shared user ID.
- the Consumer Secret is specified as the shared password.
When you create a social network configuration document for Twitter:
Parent topic: Creating a social network configuration document
- Select Twitter as the social network.
- Define authentication settings for the social network:
- Select the Credential Vault that contains your Twitter application credentials.
- Click Authorize to bind the credentials to a specific social network account.
- Enter a default message template. This is posted as text. Predefined tags for the message are included as a guide. For example:
[Property field="title" context="current" type="content" format="length:100"]
[URLCmpnt context="current" type="content" mode="storable"]
[profilecmpnt type="content" context="current" field="keywords" separator=" #" include="exact" start="#"]
Rich Text is not supported for Twitter posts, so it is not recommended to reference rich text elements in your post message.
If your posts are exceeding the 140 character limit for Twitter posts, you can adjust length of the title by reducing the length option in the format parameter as shown in this example. Long category names, or a large number of categories, can also lead to exceeding the 140 character limit.