First we need an access token with some permissions sufficient for the calls we are gonna make.
Let's just use the basic permissions about us.
To acquire an access token use this tool
Following command should return {"name":user_name,"id":user_id}
curl -X GET "https://graph.facebook.com/me?access_token=ACCESS_TOKEN"