Well it was based off Harvard's yearbook which was called facebook. At least that was my understanding.
Having photos in student directories doesn't seem like a common thing.
Windows and Apple are two other examples. It definitely restricts the scope of the mark, but websites were new in all industries, just like software was when Microsoft and Apple got their TMs.