added some functions for Facebook nab