Unable to upload image from android phone storage to facebook with caption in cordova android -
Unable to upload image from android phone storage to facebook with caption in cordova android -
i'm using facebookconnect plugin github upload images timeline on facebook. i'm able upload image form web url using feed method specifying link. shows error when utilize link image file:///path img/img1.png. of import utilize caption image. image exists in phone storage.
the function i'm using upload is:
function imgshare() { var z = 'http://33.media.tumblr.com/4f057b48f29f3c167a962380d1a35443/tumblr_mgofxc3zhm1qfwg0ho1_500.jpg'; n='enjoy life'; var options = { method:"feed", picture: z, name:n, caption:'shared via app', description:'this image shared app'}; facebookconnectplugin.showdialog(options, function (result) { alert("posted. " + json.stringify(result)); }, function (e) { alert("failed: " + e); }); }
can please help me.
picture has min of 200px 200px , remote can't utilize local image.
https://developers.facebook.com/docs/sharing/reference/feed-dialog/v2.2
also set "var" in font of n.. i.e.
var n = 'enjoy life';
other looks work. tested thing today , fine.
android facebook cordova image-uploading
Comments
Post a Comment