Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Steve Bentley 21 posts 64 karma points
    Jan 15, 2016 @ 14:49
    Steve Bentley
    0

    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

  • Anders Bjerner 487 posts 2990 karma points MVP 8x admin c-trib
    Jan 17, 2016 @ 00:06
    Anders Bjerner
    101

    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 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:

    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 ;)

  • Steve Bentley 21 posts 64 karma points
    Jan 18, 2016 @ 12:28
    Steve Bentley
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft