How to use a 3 pin photodiode

Looks very much like a transistor to me, rather than a diode (based on the housing and the three pins). But without data sheet or part number that's about all that can be said about it.