You can retrieve the names and ids for the users in your friend list by performing a GET request to /me/friends
endpoint of the Graph API. In order to make this request, a user access token with user_friends permission is required. You can read more about access tokens here.
Once you have a valid Access Token, you can simply make a GET request using any of the Facebook SDK or simply by using the following URL:
https://graph.facebook.com/me/friends?access_token={Access_Token}
This will return the list of name and user id for the users in your friend list.
You can always use Graph API Explorer to test your request and FQL queries.