How to get iCloud email address from Apple ID? - icloud

How can I detect icloud email address of the user if he provided Apple ID and Password?
Manoj

Related

Facebook Workplace API - How can I get user by username using API?

I have tried retrieving a user using the API endpoint scim/v1/Users?filter=userName eq "xxxxxxxxxx#xxxx.com" But this endpoint works properly only when the username and email address of the user are same.
There are two cases:
When username and email address is different, if tried sending the above API with username it returns 0 results and if tried with the email assigned by facebook (xxxxxxxxxx#emailless.facebook.com), it does give correct result. But this email address is not visible on the user profile. So, how can I locate this email on the UI?
When username and email address is same, it gives the expected result.
Though in the API documentation, it is mentioned that the API works for both username/email address.
Note: I tried the same with v2 APIs but the behavior is same as v1.
enter image description here

Is there a way to retrieve twitter handle/id and facebook id from a valid email address?

Is there a way to retrieve twitter handle/id and facebook id from a valid email address?
Given a list of email addresses, can we find the twitter account ids and facebook ids associated with it?
No, there is no way to get the IDs with only the email address. You should not connect any account without letting the user authorize it anyway. People may not want their accounts to be auto-connected with their email.

Facebook Login and email verification

Has Facebook always verified the email addresses for their users?
I am building an app with Django (using python-social-auth) where I want people to be able to login with their Facebook account. As far as I understand, the email is always verified. Even in the case when the person who has signed up used his/her phone number. If they enter an email later on, this email will still be verified.
However, I am not sure this was the case earlier. Can we trust that all the emails have been verified by Facebook for all the accounts?
More recently, the short answer is: Yes, if you get email from Facebook, this is verified email.
Also, remember that users may not have it set (i.e. phone registration) and probably, if you want to handle them, you will need to extend your pipeline to verification.
(But that allows you to handle for example twitter)
Anyway, more info in twin topic: Is it possible to check if an email is confirmed on Facebook?
In case anyone finds this question again, as of 2021, Facebook's documentation says that the email obtained from Facebook needs to be verified.
"1. Ensure the Facebook Login email address is verified
If you use an email address as the unique credential which identifies each account, your app should verify that the email address associated with the person's Facebook account (and obtained during Facebook Login) is valid. You can do this by creating code in your app to send a verification email to the address obtained after Facebook Login."
Source: https://developers.facebook.com/docs/facebook-login/multiple-providers#postfb1

How can I access email id's of my facebook friends

I am using koala(ruby gem/Facebook Api).
I want to access email list of my Facebook friend's.
Contacts (mac app) can access my friend's email id and their mobile phone no's.
How can I do that???
I don't particularly program with the facebook api. I wouldn't think they would provide you with direct access to information not published. Most sights such as Google (gmail) and Yahoo provide email addresses for their users that is associated with their username.
Facebook does also. Just use their public.username#facebook.com, just as you would a person's username#yahoo.com or their username#gmail.com.
Try
fb_api = Koala::Facebook::API.new(access_token)
fb_api.api("me/friends?fields=email")
but not every user will have entered the email address

how to get a users #facebook.com email?

I am trying to find out if a user has an #facebook.com email for messaging but can not see where to request that I do request perms for their regular email and can get that, but can't see where to get their #facebook.com email. It's not included in https://graph.facebook.com/me/ and since there's no guarantee that they have set one up I can't assume that it's based on their username
If a user has a facebook.com email address it will be their {username}#facebook.com. However, just because a user has a username setup, doesn't mean there's a corresponding email for it. I've had a username since Facebook landrushed them, and just the other day I setup an email for it. There's no way to tell if they've set it up. Your best bet is to ask the user for an email address that your app can use.
Just go to your privacy settings and from there act as you are editing you email address then there is a Facebook email button setup there.