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"
Following command gets the previous return explicitly
curl -X GET "https://graph.facebook.com/me?fields=id,name&access_token=ACCESS_TOKEN"
Following command should only return {"success": true}
curl -X POST https://graph.facebook.com/me -d "access_token=ACCESS_TOKEN"