{ "id": "63902", "key": "TIMOB-3270", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-05-18T15:29:15.000+0000", "created": "2011-04-15T03:41:00.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "defect", "facebook", "ios", "reported-1.6.0", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-05-18T15:29:15.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": "{html}

The below code will crash every time:

\n
\nTitanium.Facebook.dialog('feed', data, function(e){                   \n});\n
\n

However this will not crash:

\n
\nTitanium.Facebook.dialog('feed', data, function(e){\n   if (e.success) {\n      Gum.log('Facebook Result was = ' + JSON.stringify(e.result));\n   }                        \n});\n
\n

Exception:

\n
\n2011-03-04 13:15:38.165 LA Times[64028:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFString context]: unrecognized selector sent to instance 0xf5232f0'\n
\n

HD ticket related here: http://developer.appcelerator.com/helpdesk/view/75721

\n

A full code snippet of our scenario is the following:

\n
\nvar data = {\n    link: article.getUrl(),\n    name: article.getTitle(),\n    message: \"\",\n    caption: article.getCredit(),\n    picture: article.getLeadPhoto() != null ? article.getLeadPhoto().getThumbnailUrl() : \"\",\n    description: article.getBrief()\n};\nTitanium.Facebook.dialog('feed', data, function(e) {\n    if (e.success) {\n        Gum.log('Facebook Result was = ' + JSON.stringify(e.result));\n    }\n});\n
{html}", "attachment": [], "flagged": false, "summary": "iOS: Facebook Dialog Crashes when nothing is in the callback function", "creator": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "environment": null, "comment": { "comments": [ { "id": "130445", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "{html}

Hey Steve,
\nI can't duplicate this anymore in my test app. Maybe we can hold\noff for this right now until I get more information to you.

{html}", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2011-04-15T03:41:00.000+0000", "updated": "2011-04-15T03:41:00.000+0000" }, { "id": "130446", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Pushed back until Rick can offer me further information; I've\nbeen unable to duplicate.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:41:01.000+0000", "updated": "2011-04-15T03:41:01.000+0000" }, { "id": "130447", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "{html}

This is closed. User error by confusing the Dialog with the\nGraph method.

{html}", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2011-04-15T03:41:01.000+0000", "updated": "2011-04-15T03:41:01.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }