Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-3270

iOS: Facebook Dialog Crashes when nothing is in the callback function

    Details

      Description

      {html}<div><p>The below code will crash every time:</p>
      <pre>
      <code class=
      "javascript">Titanium.Facebook.dialog('feed', data, function(e){
      });</code>
      </pre>
      <p>However this will not crash:</p>
      <pre>
      <code class=
      "javascript">Titanium.Facebook.dialog('feed', data, function(e){
      if (e.success) { Gum.log('Facebook Result was = ' + JSON.stringify(e.result)); }
      });</code>
      </pre>
      <p>Exception:<br></p>
      <pre>
      <code>2011-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'</code>
      </pre>
      <p>HD ticket related here: <a href=
      "http://developer.appcelerator.com/helpdesk/view/75721">http://developer.appcelerator.com/helpdesk/view/75721</a></p>
      <p>A full code snippet of our scenario is the following:</p>
      <pre>
      <code class="javascript">var data = {
      link: article.getUrl(),
      name: article.getTitle(),
      message: "",
      caption: article.getCredit(),
      picture: article.getLeadPhoto() != null ? article.getLeadPhoto().getThumbnailUrl() : "",
      description: article.getBrief()
      };
      Titanium.Facebook.dialog('feed', data, function(e) {
      if (e.success) { Gum.log('Facebook Result was = ' + JSON.stringify(e.result)); }
      });</code>
      </pre></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              stephentramer Stephen Tramer
              Reporter:
              rblalock Rick Blalock (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-2812
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration