Fitnesspal Calories

does anyone know how Fitness pal calculates calories burned? Does it take in account our weight or is it an average weight?