10-15-2012 10:53 PM
I think for a lot of developers out there, they'll want to integrate the social features from networks like FB, Twitter, FS and share text, pictures and videos on BBM. I'd like to start up a thread to explain and track the integration of these features with the Cascades framework. If anyone out there has any insight, explainations or code please post it in this thread.
10-16-2012 12:18 AM - edited 10-16-2012 12:19 AM
Hi,
For social sharing you can use Invocation framework given by the casecade. By using this framework you can easily integrate any of the social media into your application. Currently BBM, NFC, Blutooth is supported by invocation framework. Facebook, Twitter is also supported but for that both application need to install in your BB10 device then only invocation framwork give you option in your application.
Here is link in which they give description about invocation framwrok.
https://developer.blackberry.com/cascades/referenc
Below is the code by using which you can add share option in your context menu.
Example Code:
InvokeActionItem {
title: "Share"
query {
mimeType: "image/jpg"
uri: "file:///accounts/1000/shared/camera/IMG_00000044.
invokeActionId: "bb.action.SHARE"
}
}
Note: Feel free to press like button if this answer helpful to you and if resolved your question then accept as a solution.
10-17-2012 12:07 AM
Do you have the invokeTargetId for BBM?
10-17-2012 12:36 AM
Hi,
You have to set the invocationId to "bb.action.SHARE". If you only want to set the BBM then you have to use bound invocation query.
10-17-2012 12:42 AM
10-19-2012 02:53 AM
Hi,
I also not have target ID for the Bound query.
11-14-2012 02:14 PM
Here are some examples of using invocation to invoke BBM.
InvokeActionItem {
title: "Start BBM Chat"
query {
invokeActionId: "bb.action.BBMCHAT"
uri: "pin:2732F6D7"
}
},
InvokeActionItem {
title: "Set BBM Avatar Pic"
query {
invokeTargetId: "sys.bbm.imagehandler"
invokeActionId: "bb.action.SET"
uri: "file:///path/to/your/file.png"
}
},
InvokeActionItem {
title: "Invite to BBM"
query {
invokeActionId: "bb.action.INVITEBBM"
uri: "pin:2100000A"
}
},
InvokeActionItem {
title: "Share Text Over BBM"
query {
mimeType: "text/plain"
invokeTargetId: "sys.bbm.sharehandler"
invokeActionId: "bb.action.SHARE"
data: "This is some text to share."
}
},
InvokeActionItem {
title: "Share Image Over BBM"
query {
invokeTargetId: "sys.bbm.sharehandler"
invokeActionId: "bb.action.SHARE"
uri: "file:///path/to/your/file.png"
}
}
11-14-2012 05:53 PM
This is very usefull thanks. Been looking for this.
Is there a definative list of invoketargetid's available to interact with the rim bb10 apps and other 3rd party apps?
Sending text via email would be handy as well.
11-14-2012 07:44 PM
11-14-2012 10:41 PM
to share text in another app (i.e bbm) I get an error "type mismatch" on the "data:" line. I guess the system is looking for a QByteArray when we're trying to give it a string.
Is there a simple way to convert a string into a QByteArray right in the InvokeActionItem?