You can find everything you need there: http://developers.facebook.com/docs/. For login: http://developers.facebook.com/docs/authentication/.
Lee mas