implement cache for Facebook API calls