I don't see anything wrong with this visit. From the clips I've seen he got a relatively negative appraisal by the university anyway. Surely for a nation that supposedly supports free speech, it would be perfectly reasonable for someone who holds a different political viewpoint to put forward their views and to take part in a debate. That the president would even travel to the US is a diplomatic development; just a pity that neither the Iranian nor American president would actually meet each other. And to be fair, Israel have gotten away with a lot thanks to US support.
Also agreed with what Jimsour said.