implement handler API for facebook