In a nutshell, it works like this. Social media platform ( think Pinterest, Facebook, Twitter) install an API on their site that allows to automatically recognize if an image posted belongs to a photo agency (Getty Images only for now). Upon recognition, the usage is either approved or denied. If approve, a license fee is charged.