0

我在我的应用程序中使用了 facebook 登录,我使用 FBgraphapiurl 来获取详细信息。但我无法获得birthday, country, state, city. 而firstname,Lastname, emailid 来得正是时候。这是我的代码:

 var url5 = FBgraphapiurl+'me?fields=id,first_name,last_name,email,gender&access_token=' + fbcodessss + '&redirect_uri=http://www.fastabuy.com/index.php';
 Ext.Ajax.request({
         url: url5,
         success: function (data, status) {
         var jsondata = eval("(" + data.responseText + ")");
         var data = jsondata;
         var id = data.id;
         var email = data.email;
         var name = data.first_name;
         if (data.id != null) {
         App.gvars.BuyFBID = data.id;
         }
         if (data.first_name != null) {
         Ext.getCmp('firstname').setValue(data.first_name);
         Ext.getCmp('lastname').setValue(data.last_name);
         }
         if (data.email != null) {
         Ext.getCmp('emailId').setValue(data.email);
         Ext.getCmp('Gender').setValue(data.gender);
         }
         }
         })}});

当我尝试以下操作时:

  var url5 = FBgraphapiurl+'me?fields=id,first_name,last_name,email,gender,birthdate,country,state&access_token=' + fbcodessss + '&redirect_uri=http://www.fastabuy.com/index.php';

需要什么更改才能获得country, city, state?我的代码有什么问题?

4

0 回答 0