04-25-2013 07:54 PM - edited 04-25-2013 07:56 PM
That code does not work. The documentation appears to be wrong (or there is a bug in the invocation framework/twitter app).
I never did log an issue in the JIRA tracker because the page timed out after I wrote the entire ticket, and the page didn't cache the fields -_-
Right now there appears to be no way to successfully invoke a twitter profile.
If you do figure this out, let me know.
05-23-2013 10:54 AM
Have you looked at the sample here:
You just need to create an instance of the InvocationManager:
And instantiate it in the constructor:
Then create the Invocation Request and invoke:
InvokeRequest request; request.setTarget("com.twitter.urihandler"); request.setAction("bb.action.VIEW"); request.setUri("twitter:connect:blackberrydev"); m_invokeManager->invoke(request);
And don't forget to include the headers:
#include <bb/system/InvokeManager> #include <bb/system/InvokeRequest>
05-12-2014 03:16 PM
No, currently you can only Share content to Twitter using QML.
You need the Invocation Manager in order to invoke the Twitter app, and you need C++ in order to create the Invocation Manager.
05-12-2014 03:27 PM
05-12-2014 03:43 PM
Check out the Social Invocation sample:
You'll see in main.cpp we set the context property for the QML to reference our C++ code:
QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(&a
pp); qml->setContextProperty("_socialInvocation", new SocialInvocation(&app));
Then in main.qml you will see the app's invoke function being called:
, "bb.action.OPEN", fbGroup.selectedValue, txtFBProfile.text)