Pages

How to get the name and gender of a facebook user using api's?

http://graph.facebook.com/100003085625125 

for logged user we need to use fb SDK: 
http://pastebin.com/m0VJgxbN (in combination with JS)


it works with the prety name of your profile link also. For example, take my profile url

http://www.facebook.com/danny.wilkerson

and remove the "danny.wilkerson" part and add it to the graph link

http://graph.facebook.com/danny.wilkerson

No comments:

Post a Comment