Get facebook friend Detail Using Id - facebook

I am using facebook friend picker dialog and on the result, I am getting name and Profile Pic only.
How can I get all fields like Email, Bday, Phone no.. etc.

Related

Querying Users who 'like' my Facebook Page and Get Profile Images of the Users?

I was looking out the solutions but no luck for getting the list the users who likes your Facebook page. I found out the following solutions over internet but all have some limitations. Please suggest??
Facebook provides like table where we can provide object name to get the list of users who likes your Album,Photo etc. But I didn't find to get this work for a Facebook Page. It is working for photo,album etc.
Second options with page_fan table but i notice that only the uid field is index able so you need to know the user id to search it and not the page_id.
Finally i added the Like Box in my applications where I am showing the list of user with their profile picture but here is also limitation with face book like box that i can't see the entire list of the users who likes the Facebook Page. It is showing only 20-30 in the Like Box. If i was trying to change the iFrame div CSS to overflow:auto but their is no success because i think iFrame with other domain url doesn't allow the same.
Can someone help me out how i can get the all Facebook User's profile photos who likes my Facebook page with any 3 options or let me know if any other options.

How to get user's id by user's profile url?

Now when the user input his personal profile url to a textbox, such as http://www.facebook.com/Google.
The form immediately show the Google logo(it's the Google's facebook paeg's logo).
If I know the page id,I can show the Google logo in this way:
http://graph.facebook.com/[USER_ID]/picture
But how to know the user id with any api?
You can get the user id by parsing the url and then going to https://graph.facebook.com/Google and parsing the json response. You can also parse the url to get the profile photo: https://graph.facebook.com/Google/picture

Displaying list of users of a facebook application

Am working on a facebook application and i will like to display to the user his/her friends that are already users of the application.
I have been able to get the facebook user ids of the users. Now am trying to find out if there is a facebook api resource i can use to render the user's pictures and names by just passing the ids to it.
thanks in advance.
You should try out with FQL and the user table.
http://developers.facebook.com/docs/reference/fql/user/
There you have a is_app_user field, which can be queried. The table is indexed by uid, which means you can use ids of friends to check.
With fql like this you should be able to read all friend ids who are using your app, assuming $user is current user id:
SELECT uid FROM user WHERE is_app_user = 1 AND uid IN (SELECT uid2 FROM friend WHERE uid1 = $user)
Please check out this post: Can the full name and profile picture of a user signed in via Facebook API be displayed publicly?
Good luck! :)
As others have mentioned, you can use FQL to get the information you need. But if you just want to use the user ID, you can use FBML and have the Facebook javascript lib render the FBML on the client side. You would want to use fb:name and fb:profile-pic then.
You could also use fb:multi-friend-selector if that is what you are looking for.
Have a look at this documentation page http://developers.facebook.com/docs/reference/fbml/#user/groups.
Use the fb:name tag for the name and fb:profile-pic for the profile picture.
Just loop through all the IDs and display the those two tags for each of them.
I think that what you are looking for it's the Facebook facepile, it's a social plugin.
Just give the app_id and it shows the faces of your friends using it.

How to get a profile picture from fb:friends selector

Im a Newbie to PHP and FBML(Facebook Markup Language).....so now im coding a Facebook app so I need to get profile picture and friend name when I select a name from FB:Friend Selector
Select a Friend <fb:friend-selector uid="exclude_ids" name="pal" idname="friend_sel" />
I use exclude_ids to see all friends in my selector so how to get profile picture? I can get name from this but how to get the profile pic large?
As you said, you are already able to get the name, for picture, you can put new graph api to use for getting photo easily:
Example url for my pic:
http://graph.facebook.com/sarfraz.anees/picture
So you should simply replace the sarfraz.anees above with the facebook id of a user to get his profile image.
So you can show the profile pic of a user like this:
<img src="http://graph.facebook.com/sarfraz.anees/picture" />
/picture?type=large or /picture?type=normal

FBConnect on iPhone. question about the profile image

Im developoing an app for the iPhone where users can chat using their facebook account info.
in this case: the facebook username & profile image. my question is How can I share the users profile picture in the chat box so that people can see each others avatars?
the pictures must be online somewhere? how to get to that url?
I should do somthing like this when the send button is tapped:
get the username, get the msg, get the the avatar url.
send the info to the chat server.
alt text http://img98.imageshack.us/img98/5103/screenshotrci.png
first get the album name by using FBconnect.photos.getAlbum and pass UID. it will return an array with all album info .then find the album name " profile pictures" and their album id.
after that use this album id to get the profile photo .
using this api FBConnect.photos.get and pass album id as params
this might be a little late, but all you need to do is put "pic_square" (a 50x50 image) into the fql query that you use for getting the name
NSString* fql = [NSString stringWithFormat:#"select uid, name, pic_square from user where uid == %lld", self.usersession.uid];
and that's it, it'll return a string with the URL of the image you want.