Washington (CNN) Although ISIS is known for using social media for recruitment purposes, U.S. Air Force intelligence has been using it to track down Islamic State militants, according to Gen. Hawk Carlisle, commander of Air Combat Command.

"These guys that are working down at Hurlburt (Florida), they're combing through social media. And they see some moron standing at this command and control capability for Da'Esh, ISIL. These guys go, 'ah we got an in,'" Carlisle said at a speech in Arlington, Virginia, on Monday.

Twenty-two hours after seeing the post, U.S. warplanes went in for the kill.

"Long story short...three JDAMs take the entire building out," Carlisle said in the speech to the Air Force Association.

A JDAM is a kit attached to a conventional bomb that converts it into a "smart" weapon, according the U.S. Navy. The kit, made by Boeing and put in the tail of the bombs, uses a global positioning system and internal navigation system to guide the bombs onto targets.

Read More