facebook function upgrade