{ "id": "145870", "key": "TIMOB-18712", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-04-21T02:59:14.000+0000", "created": "2015-03-18T04:56:20.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T18:09:47.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": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "There is a request on github that we should expose the 'resultURL' from presentRequestDialog method. \r\n\r\nAlso, we should upgrade the Facebook sdk in the iOS module from 3.21.1 to 3.23.1.\r\n\r\n{code}\r\nvar fb = require('facebook');\r\n\r\nvar win = Ti.UI.createWindow({\r\n\ttitle: 'RequestDialog',\r\n\tbackgroundColor:'#fff',\r\n\tfullscreen: false\r\n});\r\n\r\nvar requestDialog = Ti.UI.createButton({\r\n\ttitle: 'Request Dialog',\r\n\ttop: 180, left: 10, right: 10, height: 40\r\n});\r\n\r\nrequestDialog.addEventListener('click', function() {\r\n\tfb.presentSendRequestDialog( \r\n\t\t{message: 'Go to https://appcelerator.com/'}, \r\n\t\t{data:\r\n \"{\\\"badge_of_awesomeness\\\":\\\"1\\\",\" +\r\n \"\\\"social_karma\\\":\\\"5\\\"}\"});\r\n});\r\n\r\nfb.addEventListener('requestDialogCompleted', function(e) {\r\n\tif (e.success) {\r\n\t\talert('Request dialog completed. Returned URL is ' + e.resultURL);\r\n\t}\r\n\telse if (e.cancelled) {\r\n\t\talert('Request dialog cancelled');\r\n\t}\r\n\telse {\r\n\t\talert('error ' + e.error); \r\n\t}\r\n});\r\n\r\nwin.add(requestDialog);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Facebook module: upgrade iOS Facebook SDK and improve requestDialog", "creator": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 398, "state": "closed", "name": "2015 Sprint 09 SDK", "startDate": "2015-04-25T00:00:00.000Z", "endDate": "2015-05-09T00:00:00.000Z", "completeDate": "2015-05-11T14:11:17.028Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "346333", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Done during HackNight!\r\nPR here: https://github.com/appcelerator-modules/ti.facebook/pull/7\r\n\r\n[~msamah], please help with the android component.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-03-18T05:00:37.000+0000", "updated": "2015-03-18T05:00:37.000+0000" }, { "id": "346349", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Will do.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-03-18T08:05:52.000+0000", "updated": "2015-03-18T08:05:52.000+0000" }, { "id": "349658", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Facebook iOS SDK has upgraded to version 4.0.1 on April 2nd 2015.\r\nTo be considered for this improvement.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-04-15T08:04:35.000+0000", "updated": "2015-04-15T08:04:51.000+0000" }, { "id": "350104", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~cng] This resultURL also has the recipient user IDs as described [here|https://developers.facebook.com/docs/games/requests/v2.2#response] right?\r\n\r\nI could really use this update, for Android as well. Any eta on it?", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-04-20T11:39:29.000+0000", "updated": "2015-04-20T11:39:29.000+0000" }, { "id": "350201", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~fokkezb] just merged the pr. https://github.com/appcelerator-modules/ti.facebook/pull/12\r\nyes the resultURL returns the recipient user iDs.\r\n", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-04-21T02:58:42.000+0000", "updated": "2015-04-21T02:58:42.000+0000" }, { "id": "350218", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~cng] excellent, how about Android? ;)", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-04-21T08:49:04.000+0000", "updated": "2015-04-21T08:49:04.000+0000" }, { "id": "350223", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "It's there too sir", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-04-21T09:28:21.000+0000", "updated": "2015-04-21T09:28:21.000+0000" }, { "id": "350224", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~cng] A sorry, I was mislead by the title of the PR which only spoke about Android. Awesome!, I'll give it a try.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-04-21T09:30:18.000+0000", "updated": "2015-04-21T09:30:18.000+0000" }, { "id": "413864", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T18:09:47.000+0000", "updated": "2017-03-20T18:09:47.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }