A wave of statements and tweets by politicians sending “thoughts and prayers” after the San Bernardino shooting was quickly followed by an angry backlash over the state of America’s gun laws.

Presidential candidates were among the first to express sorrow at the loss of at least 14 lives in Wednesday’s gun rampage.

“My thoughts and prayers are with the shooting victims and their families,” Republican hopeful Ben Carson tweeted.

However, the hashtag #thoughtsandprayers soon began trending on Twitter for different reasons as users called out Congress for inaction on reforming firearms laws.

The New York Daily News has campaigned for gun controls. New York Daily News

"GOD ISN'T FIXING THIS," ran Thursday’s cover headline on the New York Daily News, which has campaigned for tighter gun controls.

Underneath, it said: "As latest batch of innocent Americans are left lying in pools of blood, cowards who could truly end gun scourge continue to hide behind meaningless platitudes."

Igor Volsky, contributing editor for political website Think Progress, tweeted that numerous lawmakers expressing “thoughts and prayers” had previously received thousands of dollars from the National Rifle Association or had voted against gun reforms such as expanded background checks.

Got $7,450 from NRA during the 2014 election cycle to address gun violence by "praying for peace" https://t.co/RsVMK3u2ju — igorvolsky (@igorvolsky) December 3, 2015

Thanks for tweeting, following, & watching today as we shamed NRA bought lawmakers for #thoughtsandprayers. Together, we can make this stop. — igorvolsky (@igorvolsky) December 3, 2015

Try this: Stop thinking. Stop praying. Look up Einstein's definition of "insanity." Start acting on gun violence prevention measures. — Zack Ford (@ZackFord) December 2, 2015

Your "thoughts and prayers" don't mean a damn thing. #GunControlNOW — billy eichner (@billyeichner) December 2, 2015

Khary Penebaker, a Milwaukee-based campaigner for gun controls, tweeted: “Congress was elected to act, not to pray. No more congressional #thoughtsandprayers.”

Democrat 2016 hopeful Hillary Clinton tweeted: “I refuse to accept this as normal. We must take action to stop gun violence now.”

However, others objected to "social media snark" and what they described as “prayer shaming.”

“After a mass shooting, it is very, very difficult to know what to do. Shaming people for prayer is not productive,” wrote Emma Green, managing editor of The Atlantic.

An honest prayer goes a lot further than a snarky social media post. #PrayersforSanBernadino — Dan Reynoso (@DannySecretion) December 3, 2015

After a mass shooting, it is very, very difficult to know what to do. Shaming people for prayer is not productive. https://t.co/69f3Thxemc — Emma Green (@emmaogreen) December 2, 2015

And some pointed out that President Barack Obama, who has expressed frustration at Congress over its unwillingness to consider gun controls, had tweeted his “thoughts and prayers” in the aftermath of the Charlie Hebdo gun attack in Paris on Jan. 7.