Rafiq took five wickets on his Yorkshire debut and hit a century in his second
England captain Andrew Strauss has issued a warning about using social network sites after Azeem Rafiq's rant at being dropped from an under-19 game.
Captain Rafiq used his Twitter account to launch an expletive-riddled attack on coach John Abrahams after he was left out for disciplinary reasons.
Strauss said: "We've had occasions of that happening so I'd say be careful.
"Players should be aware that what they write is going to be seen by people they might not want it to be seen by."
It is understood that Yorkshire's teenage off-spinning all-rounder was dropped for the second England Under-19 Test against Sri Lanka for breaking mid-match curfews.
Rafiq responded by publishing a strongly worded tirade on his Twitter page - although he deleted the comments once he realised they were publicly available.
Yorkshire have suspended Rafiq while they carry out an investigation into the events.
England captain Strauss, speaking ahead of England's first Test against Pakistan, which starts on Thursday at Trent Bridge, added: "There is a right way to react to things and a wrong way - and venting your frustration is not the right way to do it, especially if you have been in the wrong.
"You need to take it on the chin and learn from it, otherwise, there are plenty of other people who can do it better than you.
"If you haven't led by example and have let yourself down you've got to learn from it."
It is not the first time an England player has been caught out on Twitter.
Rafiq's Yorkshire team-mate Tim Bresnan, who has been called into England's squad to play Pakistan, swore on his networking page last autumn.
It is the second time Rafiq has found himself at the centre of controversy in his short career.
Yorkshire were thrown out of the 2008 Twenty20 Cup for failing to properly register the Pakistan-born player, although that was not the player's fault.