I think its: Close all doors (IMPORTANT!!!), 5 seconds ignition in position 1, turn off and then pressing button 1 till it blinks continously holding the fob like in the pic.
If that doesn´t work try button 2 using the same procedure!
And remember, it is very important that you close all the doors otherwise the IR mirror will engage a block/lock that only a Bmw DIS computer can reopen!