Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Contributor
trongbangvp
Posts: 7
Registered: ‎02-19-2013
My Device: Playbook
My Carrier: 016 83277897
Accepted Solution

Share facebook in opengl application not work.

I have a problem that i can't invoke share Facebook, twitter, BBM in openGL-application of BB10. Do you have this problem and how to resolve it?  ( Althought, i can open browser, appworld,.. with invocation framework ).

 

I place mycode at first of main function:

<mycode>

      navigator_invoke_invocation_t *iRequest = NULL;

      navigator_invoke_invocation_create(&iRequest);

 

      navigator_invoke_invocation_set_target(iRequest, "Facebook");

      navigator_invoke_invocation_set_action(iRequest, "bb.action.SHARE");

      navigator_invoke_invocation_set_type(iRequest,  "text/plain");

      navigator_invoke_invocation_set_data(iRequest, "fffff", 5);

      navigator_invoke_invocation_send(iRequest);

      navigator_invoke_invocation_destroy(iRequest);

</mycode>

 

Thank you so much!

Please use plain text.
Administrator
MSohm
Posts: 14,268
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Share facebook in opengl application not work.

Make sure you have created a window group.  It's required when using invoking cards using the Invocation Framework.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Contributor
trongbangvp
Posts: 7
Registered: ‎02-19-2013
My Device: Playbook
My Carrier: 016 83277897

Re: Share facebook in opengl application not work.

Hi, thank you! but i still don't find the problem.

 

Please check my project : http://mangadesu.com/bang/openGL_shareFB2.zip

 

I call 'InvokeTest'  in main function, but it's not work. It's ok with QML project.

 

 

Please use plain text.
New Contributor
trongbangvp
Posts: 7
Registered: ‎02-19-2013
My Device: Playbook
My Carrier: 016 83277897

Re: Share facebook in opengl application not work.

Hi MSohm,
It's resolve, but i still not found the document say : "created a window group. It's required when using invoking cards using the Invocation Framework."
Thanks.
Please use plain text.