facebook php sdk get email address
Copy the facebook folder, rename it as facebook-sdk and upload to root folder of your site. Open wp-config. php file and define facebook app constants like APPID, APPSECRET REDIRURL. I want to capture users email address when they sign up in my site with facebook.But the email is not captured.
Required fields are marked . Ive recently got started with the Facebook SDK for PHP. When I click login with Facebook it asks me for permissions including email address, which I grant in the first step. I am successfully able to display user id and name. facebook sdk get email address in php - Stack Overflow. stackoverflow.com. I suppose you have asked permissions for retrieving the email address in your app, or else it wont work: user facebook->getUser() if (user) try. Ive been sitting all night trying to figure out how to authorize a user via Facebooks API, just to get their User ID.Your E-mail Address is: ".userinfo[email]."