How to get user profile in for in facebook? - facebook

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.

Related

Is there API to get someone's facebook profile with out login to facebook?

I was wondering if its possible to get one's facebook profile (to be exact,'profile url') through their API?
I need an api to get fb profile link using a matching email address. I dont want to login to facebook though.I was trying to search for this but it seems you need to log in to facebook to get that.
Any idea or is it feasible?
You need ID of the concerned user which can't be achieved without using the Facebook Login, since Facebook login is the starting point to get the current user info (/me).
Search API could have helped you since you have the email ids of users, but unfortunately this api doesn't support user search with email!
So, answer is simple- NO, you cannot get the ID (profile link) of the user without using the facebook login.
Not that I can think of. Facebook's Graph API gives you some public info but that info given depends on the users Facebook's settings on what is public or not. You could maybe get some users profile picture but not others, making it not a very viable option for practical use. Hope that helps

Facebook API - get alternative emails

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/

How do I get facebook username based on email address?

Title sums it up. Almost identical to my recent twitter question at How do I get a Twitter username based on an email address?.
Just use:
https://graph.facebook.com/search?q=[EMAIL ADDRESS]&type=user&access_token=[APITOKEN]
You can actually get the API token by going to Facebook developer documentation and clicking on the friends link. The token is in the url.

How to get Facebook friends' email?

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.

Facebook Connect: what type of user profile information can be retrieved?

When enabling Facebook Connect, any facebook user can then login to your website,
what type of user profile information can my website retrieve?
Username?
Email?
First Name?
Last Name?
There is a ton of information you can retrieve, if the user has permitted it through their privacy settings. Just about everything you can retrieve is in a FQL table somewhere:
http://wiki.developers.facebook.com/index.php/FQL_Tables
You cannot, however, get their email. You need to ask permission, using the API, to do that. This is also not a data bonanza, you can only permanently store the user ID. Everything else you can only store for 24 hours, then need to re-query Facebook for the information.
If you just want to display the user's first and last name, you can use FBML rendered with the Facebook Connect code.
http://wiki.developers.facebook.com/index.php/FBML
Khou,
There are seriously loads of API docs around.
Good luck on your facebook journey ;)