{ "id": "100146", "key": "ALOY-237", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-08-29T15:54:49.000+0000", "created": "2012-08-29T14:59:57.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-22T13:23:09.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": [], "description": "Reproduction:\r\nCopy and paste the code below into the index.js controller. Replace consumer-secret and consumer-key with the ones given when registering a Twitter app. Build and run for iPhone.\r\n\r\n{code:javascript}\r\nvar social = require('alloy/social').create({\r\n\tsite: 'twitter',\r\n\tconsumerSecret: 'consumer-secret',\r\n\tconsumerKey: 'consumer-key'\r\n});\r\nTi.API.info(\"social:\" + JSON.stringify(social));\r\nsocial.authorize(function(e){\r\n\talert('Callback');\r\n});\r\nvar status = social.isAuthorized()\r\nTi.API.info(\"isAuthorized:\" + status);\r\n{code}\r\n\r\n\r\nResults:\r\nWhen executing the authorize function, the application should have either launched an authorize UI window, reported an error or the callback should have been called. I did not see any of these events.\r\n\r\nAlso, should the object returned when creating an instance not be empty?\r\n\r\nConsole Output:\r\n{noformat} \r\n[INFO] *********************************************\r\n[INFO] If you like the OAuth Adapter, consider donating at\r\n[INFO] https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=T5HUU4J5EQTJU&lc=IT&item_name=OAuth%20Adapter¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted\r\n[INFO] *********************************************\r\n[INFO] social:{}\r\n[INFO] isAuthorized:false\r\n[WARN] Titanium.UI.AUTODETECT_NONE DEPRECATED in 1.8.0, in favor of Ti.UI.iOS.AUTODETECT_NONE.\r\n{noformat} \r\n", "attachment": [], "flagged": false, "summary": "social builtin create and authorize functions do not seem to be working as expected", "creator": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "alloy v0.2.16\r\ntitanium mobile v2.1.1GA\r\nMac OS X v10.7.5", "comment": { "comments": [ { "id": "216925", "author": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Oops. So this one is actually working. I could not see the authorize UI window until I made the main view transparent. It was opening it in the background. I had to do'$.index.open()' before calling the social functions.", "updateAuthor": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-29T15:54:36.000+0000", "updated": "2012-08-29T15:55:12.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }