As a general point, Islam and Muslim scholars have generally no stance over the details of Jesus's story beyond what is revealed in the Holy Quran. This includes the details and aftermath of Jesus's arrest (referred to as Passion in Christianity).
However one may still be interested in the Islamic position over particular biblical stories and teachings based on Islamic doctrine. However it is usually difficult if not impossible to determine the position of Islam about particular Biblical teachings because the Bible itself is a very awkward text to deal with for questions of origin, authenticity, faithful historical transmission, problems with translations, interpretations and internal contradictions of the Bible (including the Gospels) make it very difficult to even know what Christianity — by the virtue of its scriptural sources alone and not the official interpretations of the Church — even teaches at all (even on some of the most fundamental official doctrines such as Trinity) to then inquire the position of Islam about them!
Read this feature article by Newsweek which explores some of the difficulties involved with studies for verifiable authentic "Christianity."
But as for your particular example, according to the scholarly authorities that I follow (Shias); Satan, jinns, angels, and souls can all appear to the people under certain circumstances. But not much can be said about the story you quoted without sliding into unprovable speculations and presumptions, except that Prophets never refrain from correcting false beliefs that they encounter with their associates. So according to Islam, if disciple John was found to express such a blasphemy (provided that the quoted piece is authentic or even indicative of the mainstream interpretation espoused by official Christianity) he would have been immediately condemned and corrected by Jesus. Such a misleading silence would have been unfit for a messenger of Allah that should be trusted and referenced as the ultimate guidance for believers.