Uploaded image for project: 'Appcelerator Modules'
  1. Appcelerator Modules
  2. MOD-2251

Facebook: graph api not returning results when fields are specified, possibly due to old version of graph api

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Critical
    • Resolution: Not Our Bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Facebook
    • Labels:
    • Environment:

      Appcelerator 4.5
      Titanium 5.2
      iPhone 6

      Description

      calling function getFBEvents(){
          if(fb.getLoggedIn()){
                  fb.permissions = ['user_friends', 'user_events'];
                  fb.requestWithGraphPath('me?fields=events', {}, 'GET', function(e) {
                      if (e.success) {                 
                          Ti.API.log('arrow.js : getFBEvents - result ' + e.result);
                      }
              });
          }
      }
      

      The above methods successfully returns results.
      But changing the graph request to specify the fields like this fails in appcelerator

                  fb.requestWithGraphPath('me?fields=events{id,name,description,ticket_uri}', {}, 'GET', function(e) {
      

      This however does work when using the Facebook Graph API Explorer.
      This requires version 2.4 or 2.5 to work. It appears that an older version of the Graph API is being used and there is no way to specify which version to use.

        Attachments

          Activity

            People

            • Assignee:
              cng Chee Kiat Ng (Inactive)
              Reporter:
              sean.maclachlan Sean MacLachlan
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration