implementing fb functionality