{ "id": "147953", "key": "TIMOB-18916", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" }, { "id": "16878", "description": "Release 4.0.1", "name": "Release 4.0.1", "archived": false, "released": true, "releaseDate": "2017-02-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-06-02T03:37:49.000+0000", "created": "2015-05-19T12:16:33.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-06-02T03:37:53.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "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]\r\n\r\nBut It works on Android.\r\n\r\n{code:title=Consol Log}\r\n[INFO] : FBSDKLog: Unsupported FBRequest parameter type:TiBlob\r\n[INFO] : -[TiBlob _fastCharacterContents]: unrecognized selector sent to instance 0x176261d0\r\n{code}\r\n\r\n*Testing Environments*\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.9.5\r\n Architecture = 64bit\r\n\r\nNode.js\r\n Node.js Version = 0.10.37\r\n npm Version = 1.4.28\r\nTitanium CLI\r\n CLI Version = 4.0.0-beta8\r\nTitanium SDK\r\n SDK Version = 4.0.0.RC4\r\n Target Platform = iphone\r\n\r\n*Test Code*\r\n{code:title=app.js}\r\n\r\nvar fb = require(\"facebook\");\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : '#FFFFFF',\r\n});\r\n\r\nfb.addEventListener('login', function(e) {\r\n\tif (e.success) {\r\n\t\talert('Logged in');\r\n\t}\r\n});\r\nfb.addEventListener('logout', function(e) {\r\n\talert('Logged out');\r\n});\r\n\r\nif (Ti.Platform.name === 'android') {\r\n\twin.fbProxy = fb.createActivityWorker({\r\n\t\tlifecycleContainer : win\r\n\t});\r\n}\r\n\r\n// Add the button. Note that it doesn't need a click event listener.\r\nwin.add(fb.createLoginButton({\r\n\treadPermissions : ['read_stream', 'email'],\r\n\ttop : 50\r\n}));\r\n\r\nvar B2_TITLE = 'Upload Photo from file with Graph API';\r\nvar b2 = Ti.UI.createButton({\r\n\ttitle : B2_TITLE,\r\n\tleft : 10,\r\n\tright : 10,\r\n\ttop : 200,\r\n\theight : 80\r\n});\r\n\r\nwin.add(b2);\r\n\r\nb2.addEventListener('click', function() {\r\n\tb2.title = 'Uploading Photo...';\r\n\tvar f = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'KS_nav_ui.png');\r\n\tvar blob = f.read();\r\n\tvar data = {\r\n\t\tcaption : 'behold, a flower',\r\n\t\tpicture : blob\r\n\t};\r\n\r\n\tfb.requestNewPublishPermissions(['publish_actions', 'read_stream', 'user_hometown'], fb.AUDIENCE_FRIENDS, function(e) {\r\n\t\tif (e.success) {\r\n\t\t\tTi.API.info('Permissions:' + fb.permissions);\r\n\t\t\tfb.requestWithGraphPath('me/photos', data, \"POST\", function(outcome) {\r\n\t\t\t\talert(\"Posted! Photo Posted To Your Page\");\r\n\t\t\t});\r\n\t\t}\r\n\t\tif (e.error) {\r\n\t\t\tTi.API.info('Publish permission error');\r\n\t\t}\r\n\t\tif (e.cancelled) {\r\n\t\t\tTi.API.info('Publish permission cancelled');\r\n\t\t}\r\n\t});\r\n});\r\n\r\nwin.open();\r\n\r\n{code}\r\n\r\nThanks.", "attachment": [], "flagged": false, "summary": "iOS: Posting a photo to Facebook gives \"Unsupported FBRequest parameter type:TiBlob\"", "creator": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": null, "closedSprints": [ { "id": 407, "state": "closed", "name": "2015 Sprint 11 SDK", "startDate": "2015-05-23T00:00:08.253Z", "endDate": "2015-06-06T00:00:00.000Z", "completeDate": "2015-06-08T16:18:16.381Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "352985", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~penrique] Can you please look at this ASAP to see if anything stands out to you?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-19T13:35:40.000+0000", "updated": "2015-05-19T13:35:40.000+0000" }, { "id": "353409", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR Here: https://github.com/appcelerator-modules/ti.facebook/pull/18", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-05-25T06:44:00.000+0000", "updated": "2015-05-25T06:44:00.000+0000" }, { "id": "353865", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Facebook binary update in Titanium mobile.\r\n\r\nPR for 4_0_X: https://github.com/appcelerator/titanium_mobile/pull/6883\r\nPR for master: https://github.com/appcelerator/titanium_mobile/pull/6882", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-05-29T04:34:01.000+0000", "updated": "2015-05-29T04:36:06.000+0000" }, { "id": "353924", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed using:\r\n\r\nMacOS 10.10.3\r\nStudio 4.0.0.201505202026\r\nTi SDK 4.0.1.v20150529014212\r\nAppc NPM 4.0.0\r\nAppc CLI 4.0.1-rc\r\nTi CLI 4.0.1-rc\r\nAlloy 1.6.0\r\nNode v0.10.37\r\nJava 1.7.0_45\r\nFacebook Module 4.0.4\r\n\r\nI am able to login and post photos with the Graph API (using the above sample code) without error.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-05-29T22:22:07.000+0000", "updated": "2015-05-29T22:22:07.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }