I developing an Android application using Titanium Appcelerator. I had tried to Post image and text to native facebook app installed in my mobile via intent. But i getting only the empty post screen when i used the below code.
and i didnt get any errors. i get the facebook post screen , But i couldn't able to add prefilled text or images in it..
var intFB = Ti.Android.createIntent({
action : Ti.Android.ACTION_SEND,
packageName : "com.facebook.katana",
type : "text/plain"
});
intFB.putExtra(Ti.Android.EXTRA_TEXT, "text message..");
intFB.putExtraUri(Ti.Android.EXTRA_STREAM, image_file.nativePath);
Ti.Android.currentActivity.startActivity(intFB);
What mistake i made in this..? clarify me please....
Thanku..
0 comments:
Post a Comment