Project: titanium
Issue TIMOB-18916: iOS: Posting a photo to Facebook gives "Unsupported FBRequest parameter type:TiBlob"
Post a Photo Using the Graph API from the Gallery or image in resources directory does not work on iOS always show this log info. [Community Question|https://community.appcelerator.com/topic/445/posting-a-photo-to-facebook-doesn-t-support-blobs-ios] But It works on Android. {code:title=Consol Log} [INFO] : FBSDKLog: Unsupported FBRequest parameter type:TiBlob [INFO] : -[TiBlob _fastCharacterContents]: unrecognized selector sent to instance 0x176261d0 {code} *Testing Environments* Operating System Name = Mac OS X Version = 10.9.5 Architecture = 64bit Node.js Node.js Version = 0.10.37 npm Version = 1.4.28 Titanium CLI CLI Version = 4.0.0-beta8 Titanium SDK SDK Version = 4.0.0.RC4 Target Platform = iphone *Test Code* {code:title=app.js} var fb = require("facebook"); var win = Ti.UI.createWindow({	backgroundColor : '#FFFFFF', }); fb.addEventListener('login', function(e) {	if (e.success) {	alert('Logged in');	} }); fb.addEventListener('logout', function(e) {	alert('Logged out'); }); if (Ti.Platform.name === 'android') {	win.fbProxy = fb.createActivityWorker({	lifecycleContainer : win	}); } // Add the button. Note that it doesn't need a click event listener. win.add(fb.createLoginButton({	readPermissions : ['read_stream', 'email'],	top : 50 })); var B2_TITLE = 'Upload Photo from file with Graph API'; var b2 = Ti.UI.createButton({	title : B2_TITLE,	left : 10,	right : 10,	top : 200,	height : 80 }); win.add(b2); b2.addEventListener('click', function() {	b2.title = 'Uploading Photo...';	var f = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'KS_nav_ui.png');	var blob = f.read();	var data = {	caption : 'behold, a flower',	picture : blob	};	fb.requestNewPublishPermissions(['publish_actions', 'read_stream', 'user_hometown'], fb.AUDIENCE_FRIENDS, function(e) {	if (e.success) {	Ti.API.info('Permissions:' + fb.permissions);	fb.requestWithGraphPath('me/photos', data, "POST", function(outcome) {	alert("Posted! Photo Posted To Your Page");	});	}	if (e.error) {	Ti.API.info('Publish permission error');	}	if (e.cancelled) {	Ti.API.info('Publish permission cancelled');	}	}); }); win.open(); {code} Thanks.
Story points: 5