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

Adobe AIR Development

Reply
New Contributor
kobydo
Posts: 8
Registered: ‎11-21-2013
My Device: Developer
My Carrier: Developer

Facebook integration

Hi, I saw that it's possible to integrate Facebook with Adobe AIR SDK for BlackBerry:

https://developer.blackberry.com/air/documentation/facebook.html

 

But I cannot use any of the functions in this document because I have no bb.XXX functions. 

Am I missing something ? What should I import into my project ?

 

Thanks !

 

Please use plain text.
New Developer
trieuchung
Posts: 41
Registered: ‎07-29-2012
My Device: 9650
My Carrier: sprint

Re: Facebook integration

what do you want to do it ?
--
Triệu Chung
VietNam National University
Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Facebook integration

bb.action.SHARE is a string so just use 'bb.action.SHARE'. They are defined in:

import qnx.invoke.InvokeAction;

as

InvokeAction.SHARE



Please use plain text.
New Developer
trieuchung
Posts: 41
Registered: ‎07-29-2012
My Device: 9650
My Carrier: sprint

Re: Facebook integration

do you want share on facebook only ? or all social allow share ?
--
Triệu Chung
VietNam National University
Please use plain text.
New Contributor
kobydo
Posts: 8
Registered: ‎11-21-2013
My Device: Developer
My Carrier: Developer

Re: Facebook integration

I want to post an Image with a URL as a link to my app for Facebook only.

My images are stored in my web site.

 

Does posting data does not require logging in to Facebook first ?!

 

Can you please send me an example ?

 

 

Thanks.

Please use plain text.
New Contributor
TV_Minh
Posts: 9
Registered: ‎08-29-2013
My Device: Z10
My Carrier: Viettel

Re: Facebook integration

[ Edited ]

Hi! The invocation framework is really great!. You can easily interact with other social apps. I'm using FD and it works well, I think with other IDEs you can easily do the same thing!
1) Copy the QNXDevice.ane to your project and add it to your library (External lib)
2)Add this line to your application.xml
<extensions>
        <extensionID>qnx.system.QNXDevice</extensionID>
 </extensions>
3) And this for bar-descriptor.xml
<action system="true">run_air_native</action>
4) Coding
I used this code to share a screenshot on BBM and Twitter. If you want to share a link, lets read the document.I think its more easier with changing some properties

var request:InvokeRequest = new InvokeRequest();
request.action = InvokeAction.SHARE;
request.target = 'Twitter'
request.uri = 'file://' + scr.nativePath;
InvokeManager.invokeManager.invoke( request );



Please use plain text.
New Contributor
kobydo
Posts: 8
Registered: ‎11-21-2013
My Device: Developer
My Carrier: Developer

Re: Facebook integration

Thanks !!! Is it possible to share a photo + Data at the same time ?

Or do I have to call this function twice ?

 

Thanks

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Facebook integration

The invocation does not allow to have multiple types, so you will have to make to different requests.
Please use plain text.
New Member
edi_csa
Posts: 2
Registered: ‎02-01-2014
My Device: dev alpha c
My Carrier: nju mobile

Re: Facebook integration

Hi.. 

 

is it possible to use facebook graph api to get for example information about owner account like mail, name, surname etc.. 

 

regards

Please use plain text.