Photographs from an Early Childhood classroom posted on social media are considered primary resources because they provide first-hand evidence. They would be secondary resources if instead of the photos, comments on the photos were posted on social media.
Secondary resources are resources which comment or analyze primary resources. For instance, a poem written by Edgar Allan Poe is a primary resource but an analysis of this poem is considered a secondary resource.