Thats not how the OBS trucks program their key fobs.
First off if you dont have a black box under the dash that looks like this
a key fob wont do crap for you
If you do have this box then here is the OBS procedure Ive used a few times
To program (or reprogram) transmitter(s) into the remote entry receiver module, perform the following steps:
1. Turn key to the ON or ON/ACCESSORY position and momentarily short the two terminals of the program connector (C4) (a two-pin connector taped to the wire assembly connected to the remote entry receiver module, approximately 6 inches from the remote entry receiver module). All doors should lock then unlock. Remove shorting pin.
2. Press any button on transmitter. All doors should lock then unlock to verify that the transmitter has been programmed. If door locks do not respond, press button again (up to three times maximum with the same transmitter).
3. Repeat Step 2 to program additional transmitters into the remote entry receiver module (up to four transmitters maximum).
4. Key off. All doors should lock then unlock.