splendido / meteor-accounts-emails-field

A Meteor package to keep user.email up to date with email addresses used for 3rd-party account services
19 stars 9 forks source link

test accounts-facebook #29

Closed splendido closed 10 years ago

splendido commented 10 years ago

the user object provided by the service is like the following:

{
    "profile" : {
        "name" : "Pippo Pippo"
    },the user object provided by the service is like the following:
    "services" : {
        "facebook" : {
            "accessToken" : "WZCEWv15lOiCWyQQCAAJu63rkOb4BACpqctwQNGNVgUSZBEMpVuO2D6WP1WFVMxFZBieB1pVP2ZCuWwoZAEmNIT7f0UAFsDpwxeEkFvIXdAi5tr2gZDR8OkFDihvqr2P3TCSZBZC2zp2EDooVCZClfcDgZCiH2pw7j9Y2FpKmg5KrtFas7ujkE7Jw6LcvP2U1EGZCymH",
            "expiresAt" : 1405444562588,
            "id" : "10152793182767892",
            "email" : "pippo@example.com",
            "name" : "Pippo Pippo",
            "first_name" : "Pippo",
            "last_name" : "Pippo",
            "link" : "https://www.facebook.com/app_scoped_user_id/10194753072767892/",
            "gender" : "male",
            "locale" : "en_US"
        },
    }
}

email field: services.facebook.email

It seems that in case the email is not verified Facebook doesn't permit to use the account for 3rd-party login. Hence the password should be considered as verified!

I peronally tested and verified this on 2014/06/08 by creating a new account on Facebook and soon after trying to login to a test application: the pop-up dialog asks to confirm your email before to proceed! Good!!