For example, is there a way to开发者_Python百科 query "Stanford University" and get its facebook id "6192688417"?
There is a difference between various entities, some are friends, some are pages, and some are groups. There is a query language in Facebook using the API, which is called FQL. It looks like SQL, but you can use FQL to query the structure and get its associated ID.
Check out the resources at: developers.facebook.com, specifically this: http://developers.facebook.com/docs/reference/fql/
It has a JS, PHP, or there are .NET API's available.
HTH.
精彩评论