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
Highlighted
New Developer
Posts: 10
Registered: ‎08-06-2013
My Device: BBZ10 -LimitedEdition
My Carrier: Movistar Argentina

Social Invoke Framework

[ Edited ]

invoke framework in Air not working properly.

 

This works but I don't open to send a tweet

 

request.target = "com.twitter.urihandler";
	request.action = InvokeAction.SHARE;
	request.mimeType = "text/plain";
	request.uri= "data://";
	var data:ByteArray = new ByteArray();
	data.writeUTFBytes( "Lo Logreeeeee" );
	request.data = data;

InvokeManager.invokeManager.invoke(request);

 

 

In this way does not work, "Twitter" isn't recognize as target
This is the way that the official documentation suggests

request.target = "Twitter";
	request.action = InvokeAction.SHARE;
	request.mimeType = "text/plain";
	request.uri= "data://";
	var data:ByteArray = new ByteArray();
	data.writeUTFBytes( "Lo Logreeeeee" );
	request.data = data;

InvokeManager.invokeManager.invoke(request);

 

 

How can i send a tweet from my app?.

 

 

BlackBerry Development Advisor
Posts: 172
Registered: ‎10-25-2010
My Device: Not Specified

Re: Social Invoke Framework

The invoke framework will not send the tweet for you. It can merely open the Compose Tweet Card pre-filled in. It is up to the user to press "Tweet" to actually send it.

 

This worked for me.

 

var request:InvokeRequest = new InvokeRequest();
request.target = "Twitter";
request.action = InvokeAction.SHARE;
request.mimeType = "text/plain";
var data:ByteArray = new ByteArray ();
data.writeUTFBytes ("What Logreeeeee");
request.data = data;
InvokeManager.invokeManager.invoke (request);

 

New Developer
Posts: 10
Registered: ‎08-06-2013
My Device: BBZ10 -LimitedEdition
My Carrier: Movistar Argentina

Re: Social Invoke Framework

[ Edited ]

When I use 

request.target = "Twitter";

 

Not Open Tweet Application

 

When I use 

 

request.target = "com.twitter.urihandler";

Not compose tweet Card..

 

any suggestions..

 

 

BlackBerry Development Advisor
Posts: 172
Registered: ‎10-25-2010
My Device: Not Specified

Re: Social Invoke Framework

  1. Is the Twitter application installed on the device?
  2. Is there a Twitter account set up?
  3. What Device, OS Version, SDK version are you using?
New Developer
Posts: 10
Registered: ‎08-06-2013
My Device: BBZ10 -LimitedEdition
My Carrier: Movistar Argentina

Re: Social Invoke Framework

[ Edited ]

Twitter by default

Yes there is a account set up

The device is a bbz10  SO 10.1.0.273 

The AIR SDK 3.2.1

 

The same problem I have with "Facebook". and other Social Net

 

 

BlackBerry Development Advisor
Posts: 172
Registered: ‎10-25-2010
My Device: Not Specified

Re: Social Invoke Framework

Not sure what more to suggest. If you want create a small sample application with it not working and send me the .bar file.

jdolce <at> qnx <dot> com
New Developer
Posts: 10
Registered: ‎08-06-2013
My Device: BBZ10 -LimitedEdition
My Carrier: Movistar Argentina

Re: Social Invoke Framework

Ok I'm sending a bar file...