added facebook methods for analysis
call function on interval