A 5.5 magnitude earthquake shook northern regions of Pakistan and parts of Afghanistan early on Tuesday, as Muslims were preparing for their Sehri meal before their Ramzan fast.

No casualties have been reported as yet.

The epicentre of the earthquake was in Afghanistan, 22km west of Ashkasham, according to the US Geological Survey.

Tremors were felt in Peshawar, Mingora, Abbottabad, and even Islamabad, The Express Tribune reported.

Several Pakistanis took to Twitter to share their concern and stated they felt tremors just ahead of their meal before the roza (fast).

However, there were several Twitterati who blamed the earthquake on those 'liberals' who supported the recent ruling by the US Supreme Court legalising same-sex marriages in the country.

The Twitter posts particularly targeted those people who had recently used the rainbow-themed app to change their display pictures on Facebook.

Here are some of those posts -