Using Facebook's API, can you get the alternative emails list for a user?
No, Facebook doesn't provide Alternate Email Address with the user object.
Here are the fields that are accessible:
https://developers.facebook.com/docs/reference/api/user/
Related
I am going to retrieve Facebook friends email addresses in one of my applications. I have asked the permission for "user_friends" and "email" apart from other permissions, but when I try to get the email addresses for my friends list, email address is not returning. I could able to get other information but not email address. I tested the same using Graph API tool, it is also giving the same result.
Can anyone suggest what was the issue in getting facebook friend's email addresses?
There is no way of getting friends' email addresses. The email permission is used to get the user's email address, and user_friends permission is to find friends who also uses the same application.
The reason both your app and the Graph API doesn't return email addresses is because it's not possible (for obvious reasons, like spamming). There is no way around this.
If you want to invite friends to use your application, use one of the other methods like Sharing, Requests or Tagging.
If someone sends me a note using the facebook email feature (myname#facebook.com), how do you get this message using the API? Is it possible? I can see it in my Private Messages, but it doesn't seem to be coming over when I use FQL to query that table. Is it possible to get these messages?
You can use the Graph API to do this:
$data = $facebook->api('/me/inbox');
Check out: http://developers.facebook.com/tools/explorer/?method=GET&path=me%2Finbox
You need to request the read_mailbox permission from the user. With this permission you will be able to access the messages in the users inbox.
You can read more about facebook permissions at this link.
Can I get a user's friends emails through Graph API? and How?
It doesn't appear that you can.
You can get a list of friends, but that only gives you ids and names. It appears you have to get users to give you an access token to pull private info, such as email, on a per user basis.
http://developers.facebook.com/docs/api
http://developers.facebook.com/docs/reference/api/user
Now we can notify our facebook friends by special emails:
facebook_username#facebook.com
Excellent feature)
You cannot. You have to ask each user so he permit you to get his own email.
Unless the user's friends have made their email address public (which is highly unlikely) then no, you can't get a user's friend's email address.
Yes, You need to set scope paramter, eg: Set scope="email", which allows to get permit from user to access his EmailID, because by default you can access only id, name etc. So for this purpose, you need to get access from user.
No there isn't any way to get emails through API. But instead of that you can use profile username or profile ID to login or for other purposes.
YES, of course you can.
All you want to have an email ID with YAHOO.
If you are having already then just sign-in
and go to the CONTACTS link on the left pane.
Now go to the ACTIONS link and click on IMPORT.
This will give you options to import your facebook contacts.
Just click on FACEBOOK, A pop-up window will appear.
Sign-in to facebook on that window.
It's DONE!!!
Enjoy.
please any example then give me...dont give me reference site name or any facebook sdk site..because i used sdk for ASp.net and in friendlist class it show me only email hashes instead of any email address,so there is any other way to get friend email full email address
The Facebook api has never and most likely will never expose friends email addresses. If you want to do this just for your own account, Facebook gives you the option to sync your friends & their email addresses with a Yahoo mail account, but again this is a feature that is not available through any kind of API.
How can I get profile information in facebook according to emailid using an API?
You cannot access Facebook information by querying according to an email address. It is not an indexable field. There is NO way to get Facebook user information using an email address. You must use name or username
The email fiel is NOT indexable.
That means you can not search for a profile by using the email field (That would be a privacy issue).
You can take a look here to get more details:
http://developers.facebook.com/docs/reference/fql/user
The facebook API, are well documented:
http://developers.facebook.com/docs/reference/api/user
If you can read Java go through this nice tutorial on accessing Facebook after authenticating using OAuth. It includes a basic example of fetching an user's profile details.