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

iPhone: Facebook offline_access state

    Details

      Description

      {html}<div><p>Titanium.Facebook.hasPermission("offline_access")) seems to
      always return false.</p>
      <p>
      Titanium.Facebook.requestPermission("offline_access",function(evt)
      does not close window after success.</p>
      <pre>
      <code>b1.addEventListener('click', function()
      {
      if (Titanium.Facebook.isLoggedIn()==false)
      {
      Ti.UI.createAlertDialog({title:'Facebook', message:'Login before requesting acces'}).show();
      return;
      }
      Ti.API.info('Facebook offline_access permission ' + Titanium.Facebook.hasPermission("offline_access"));
      if (!Titanium.Facebook.hasPermission("offline_access"))
      {
      Titanium.Facebook.requestPermission("offline_access",function(evt)
      {
      if (evt.success)
      { Ti.API.info('Facebook offline_access permission request result' + Titanium.Facebook.hasPermission("offline_access")); }
      });
      }
      else
      { Ti.API.info('Facebook offline_access permission request result' + Titanium.Facebook.hasPermission("offline_access")); }

      });</code>
      </pre></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              blainhamon Blain Hamon
              Reporter:
              aleard Alan Leard
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code