Any luck in getting the library to work?
I tried three libraries (SDFat, sd-card-library-photon-compat, and sd-card-library. The most popular one (SDFat) gives a couple of errors as shown above.
However, all THREE libraries do not like the following statement below with the error (‘SS’ was not declared in this scope):
// This needs to be called to set up the connection to the SD card
// before other methods are used.
boolean begin(uint8_t csPin = SS); // HARDWARE SPI