F1 superstar Daniel Ricciardo is giving the Miami Grand Prix two thumbs up -- telling TMZ Sports he had an absolute blast in Florida over the weekend ... especially because he got to hang out with his bestie, Josh Allen!!

Of course, the biggest stars on the planet were in town for the inaugural race ... from David Beckham to Tom Brady and Michael Jordan.

Ricciardo says it was an awesome experience having so many celebs stop by ... telling us, "It was cool, it was pretty nuts, actually. It was pretty wild."

But, there was one VIP that had Daniel super pumped ... and that's the Buffalo Bills quarterback, who was a special guest for McLaren.