'Can not get Facebook email for React Login/Register
I can not get the Fb profile email for React Login/Reg and can not find how to solve it. I need to get data and post my other Api. Name, picture and id comes, but email not come
Package react-facebook-login
My request
const responseFacebook = (response) => {
const dt = new FormData();
dt.append("name", response.name);
dt.append("phone", defualtValue);
dt.append("password", response.id);
dt.append("auth_type", 1);
for (var pair of dt.entries()) {
console.log(pair[0] + ", " + pair[1]);
}
console.log(response);
};
Component
<FacebookLogin
appId=""
autoLoad={false}
fields="name,email,picture"
callback={responseFacebook}
scope="public_profile,email,user_actions.books"
/>
console
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

