This did not use the Facebook API. It completely circumvents it.
This is quite unfair to you IMO...downright shameful of facebook to do this.
Facebook could be defining anything that blocks or interferes with their advertising and revenue stream as malware.