Facebook authorization not returning email address
I'm using the latest version of Skybrud.Social (compiled from source) on an Umbraco 7.3.1 install.
When I try to authenticate against Facebook, the authentication works fine but the email address is not returned. Even though I'm asking for the email address, the only returned values are Name and Id.
Has anyone else encountered this problem? And if so did you manage to solve it.
If you are using one of the latest versions of the Facebook API (you probably are), the API will only return the id and name fields by default, so you have to tell Skybrud.Social (or the API really) to return the extra fields that you need. You can read a bit more about that here:
Facebook authorization not returning email address
I'm using the latest version of Skybrud.Social (compiled from source) on an Umbraco 7.3.1 install.
When I try to authenticate against Facebook, the authentication works fine but the email address is not returned. Even though I'm asking for the email address, the only returned values are Name and Id.
Has anyone else encountered this problem? And if so did you manage to solve it.
Thanks
Steve
Hi Steve,
If you are using one of the latest versions of the Facebook API (you probably are), the API will only return the
id
andname
fields by default, so you have to tell Skybrud.Social (or the API really) to return the extra fields that you need. You can read a bit more about that here:http://social.skybrud.dk/facebook/fields/
Similar to the fields shown in the example, there is also an
email
field that you can specify to include.Hope that helps ;)
I'm using the Facebook API v2.5, which is (currently) the latest one.
Once I explicitly asked for the email address it all worked.
Thanks for your help.
Steve
is working on a reply...