const param = {
fields: {
string: 'email',
},
};
// Create a graph request asking for user information with a callback to handle the response.
const infoRequest = new GraphRequest(
'/me',
{
httpMethod: 'GET',
version: 'v2.5',
parameters: param,
},
responseInfoCallback,
);
// Start the graph request.
const res = new GraphRequestManager().addRequest(infoRequest).start();
Log('Res is :', res);
Hi I 'm using your wallpaper on my application on Android and my code is blow . I can't get the email of user thought GraphRequest.
`const getFacebookUserInfo = () => { const responseInfoCallback = (error, result) => { if (error) { console.log('Error fetching data: ' + error.toString()); } else { Log('Success fetching data: ', result); } };
};`
In my response is :
Success fetching data: {id: "..."}
I can't see email parameter in response