All the invocation attributes related to the Facebook app require a Facebook account to be setup on the device. Here are the invocation attributes you use to share text with Facebook:
| Attribute | Value |
|---|---|
| Target ID |
|
| Action |
bb.action.SHARE |
| MIME type | text/plain |
| URI | data:// |
| Data | Text string to be shared |
Here are the invocation attributes you use to share media (pictures and video) with Facebook:
| Attribute | Value |
|---|---|
| Target ID |
|
| Action |
bb.action.SHARE |
| URI | file:///path/to/content.png |
| File extensions | .gif, .jpeg, .jpg, .png, .psd, .tiff, .tif, .3g2, .3gp, .3gpp, .asf, .avi, .dat, .flv, .m4v, .mkv, .mod, .mov, .mp4, .mpe, .mpeg4, .mpg, .nsv, .ogm, .ogv, .qt, .tod, .vob, .wmv |
| MIME type | MIME type can specified in the following format: image/gif, image/jpeg, video/mov, video/mpeg4, etc. |
Here are the invocation attributes you use to share a URL with Facebook:
| Attribute | Value |
|---|---|
| Target ID |
|
| Action |
bb.action.SHARE |
| URI | http://, https:// |
Here are the invocation attributes you use to open a personal or a business Facebook profile page:
| Attribute | Value |
|---|---|
| Target ID |
com.rim.bb.app.facebook |
| Action |
bb.action.OPEN |
You must set the metadata of the request object to a QVariantMap that contains the following entries:
| Entry | Description |
|---|---|
| object_type |
Specifies the type of the profile (for example, page for a business profile or user for a personal profile. |
| object_id |
Specifies the numeric ID of the Facebook profile page. The numeric ID can be found within the URL of the Facebook profile page (for example, www.facebook.com/profile.php?id=328506290597521). Here's a useful link to identify the profile ID of a Facebook profile. |
QVariantMap payload; payload["object_type"] = "page"; payload["object_id"] = "328506290597521"; // BlackBerry NA Facebook page request.setMetadata(payload);
Last modified: 2013-03-21