If dark matter can't interact electromagnetically, then how can it annihilate into photons? I have read this question:

As I understand, dark matter theoretically only interacts with the gravitational force, and doesn't interact with the other three fundamental forces: weak nuclear force, strong nuclear force, and electromagnetism.

If dark matter only interacts with gravity, why doesn't it all clump together in a single point?
There are a few questions on this site about dark matter annihilation and anti-dark matter, and all of them take it for granted that dark matter annihilates into photons.
Is there a possibility of anti-dark matter?
Dark Matter gamma-ray flux from hadronic annihilation channels?
How convincing is the evidence for dark matter annihilation at 130 GeV in the galactic center from the Fermi Satellite data?
Now as far as I understand, ordinary matter and anti-matter can annihilate into photons because ordinary matter does interact electromagnetically.
But dark matter does not interact electromagnetically, hence, dark matter cannot annihilate into photons, dark matter's energy cannot be transformed into the energy of the EM field.
Question:

*

*If dark matter can't interact electromagnetically, then how can it annihilate into photons?

 A: This has been addressed in Neutrino annihilation and bosons since neutrinos are a type of dark matter (they just aren't the dark matter we need to account for the extra mass of the universe).
You are quite correct that a neutrino and antineutrino cannot annihilate directly to photons but they can do so via a Z boson. We don't know what the dark matter particles are but we expect they will annihilate by a similar mechanism involving an intermediate particle.
A: Since we don't know what the quanta of dark matter are, we also don't know whether dark matter can annihilate into photons. It is perfectly possible that dark matter may not be able to annihilate into photons at all. But, and as @JohnRennie points out in his answer, it is conceivable that dark matter may annihilate into photons. This could be through some intermediate particle similar to the Z boson as he says. WIMPs in particular are one of the popular dark matter candidates, and for WIMPs and other thermal relic particles one would generically expect annihilation into photons as well. Or, taking the case of axions as dark matter for example, this can happen through coupling of axions to photons directly. So, if somebody pretends that dark matter annihilating into photons is a given, then they're sweeping basic assumptions under the rug.
