The rockers played an acoustic rendition of "Reunion," a tune from their latest album, 'This House Is Not For Sale', reported Variety.
Prior to the performance, frontman Jon Bon Jovi addressed the 2017 graduates.
"Choose your words wisely - not only those you say to others, but also the words you say to yourself. Don't take anything personally - accept both praise and criticism equally, but take neither to heart. Never assume or judge a book by its cover - the truth is, there are many surprises awaiting you on your journey.
He also announced that his children Stephanie and Jesse are graduating college this week.
Around 3,200 students from 54 countries and 40 states were in attendance at the MetLife Stadium.
The appearance by the New Jersey band was the result of the New Jersey school winning MTVU and Bon Jovi's "Crash My Commencement" contest.