adding Facebook Framework
checking for nil in params before posting data