The attack was the deadliest in the Pakistani capital since September 2008, when 60 people were killed in a suicide truck bomb blast that destroyed part of the five-star Marriott hotel.
Trump's rhetoric in recent days has focused on reining in the Iranian nuclear programme and the US has manoeuvered a naval group led by aircraft carrier USS Abraham Lincoln into the region.
The posts targeting Macron began appearing online on Wednesday, shared simultaneously by several social media accounts identified as regular sources of pro-Russian disinformation. The accounts have a following of several thousand internet users.
Islamist militants armed with automatic weapons and grenades stormed the US compound at a time when the oil-rich North African country was torn by civil war.
Prime Minister Luis Montenegro visited stricken areas of the country on Friday and spoke of a provisional estimate of damage exceeding four billion euros ($4.7 billion).