facebook photos helper functions