FBgraphapiurl values cant be able access
I have used facebook login in my application,i have used FBgraphapiurl to
get the details ,But i cant able to get the BIRTHDAY,COUNTRY, STATE, CITY,
Whereas the firstname,Lastname,email id coming properly,Here my code.
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);
}
}
})}});
When i try with the following
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';
its not showing?whats wrong with my code
No comments:
Post a Comment