Twitter

All the invocation attributes related to the Twitter app require a Twitter account to be set up on the device.

Sharing text with Twitter

Here are the invocation attributes you use to share text with Twitter:

Attribute Value

Target ID

Twitter

Action

bb.action.SHARE

MIME type

text/plain

URI

data://

Data

Text string to be shared

Sharing a photo with Twitter

Here are the invocation attributes you use to share a photo with Twitter:

Attribute Value

Target ID

Twitter

Action

bb.action.SHARE

URI

file:///path/to/content.png

File extensions

.gif, .jpeg, .jpg, .png

MIME type

image/gif, image/jpeg, image/png

Sharing a URL with Twitter

Here are the invocation attributes you use to share a URL with Twitter:

Attribute Value

Target ID

Twitter

Action

bb.action.SHARE

URI

http://, https://

Opening a Twitter profile

Here are the invocation attributes you use to open a Twitter profile:

Attribute Value

Target ID

com.twitter.urihandler

Action

bb.action.VIEW

URI

twitter:connect:<twitter_profile_name>

The profile name must not contain the @ prefix. For example, here's the correct format: twitter:connect:blackberry.

Searching Twitter

Here are the invocation attributes you use to search Twitter for relevant tweets containing a search term:

Attribute Value

Target ID

com.twitter.urihandler

Action

bb.action.VIEW

URI

twitter:search:<search_term>

Using a hashtag symbol as a prefix in your search results is optional (for example, twitter:search:#BB10Believe).

Last modified: 2013-12-21

comments powered by Disqus