updated FB code