Australia joined an exclusive club on Thursday, getting a first-hand view of the new mode of international diplomacy that occurs when the US president is displeased.
As the Turnbull government and the US embassy in Canberra repeatedly assured that the refugee deal with the United States would go ahead, the new US president took to Twitter to cast some doubt.
More World News Videos
Turnbull Trumped by phone-y diplomacy
As embarrassing details of Malcolm Turnbull's first phone call with Donald Trump are revealed, the refugee agreement the President blasted as "the worst deal ever" hangs in the balance. Courtesy Seven News Melbourne.
"I will study this dumb deal!" he wrote, referring to the 1200 refugees the US agreed to take from Manus Island and Nauru.
Do you believe it? The Obama Administration agreed to take thousands of illegal immigrants from Australia. Why? I will study this dumb deal!
— Donald J. Trump (@realDonaldTrump) February 2, 2017
It came as a shock for many in Australia and overseas that Mr Trump would publicly create waves with such a strong ally.
However, the tweet follows Mr Trump's established behaviour on social media since he was elected.
He has enthusiastically used Twitter to praise conventional allies, like Israel, and call for closer ties with traditional foes - namely Russia.
Aside from Australia, other countries to feel his social media fury include Mexico, China and Iran.
Here are the countries Trump has singled out on Twitter during his time as President and President-elect.
1. Mexico
Mexican President Enrique Pena Nieto cancelled his meeting with Donald Trump after he tweeted. Photo: AP
During the presidential campaign, Trump repeatedly assured supporters he would make Mexico pay for a wall on the border between the countries.
After being sworn in, he continued his criticism of the country, which he said had "taken advantage of the US".
Mexico has taken advantage of the U.S. for long enough. Massive trade deficits & little help on the very weak border must change, NOW!
— Donald J. Trump (@realDonaldTrump) January 27, 2017
He also said if Mexico didn't want to pay for a wall, it should cancel a planned face-to-face meeting - which the Mexican President did.
The U.S. has a 60 billion dollar trade deficit with Mexico. It has been a one-sided deal from the beginning of NAFTA with massive numbers...
— Donald J. Trump (@realDonaldTrump) January 26, 2017
of jobs and companies lost. If Mexico is unwilling to pay for the badly needed wall, then it would be better to cancel the upcoming meeting.
— Donald J. Trump (@realDonaldTrump) January 26, 2017
2. Iran
Iranian head of state, Supreme Leader Ayatollah Ali Khamenei. Photo: AP
Shortly before he tweeted about Australia's refugee deal on Thursday, Mr Trump said Iran was "taking over more and more of Iraq".
He also said the US had "squandered three trillion dollars" in Iraq.
The comment came shortly after the White House rebuked Iran for test-firing a ballistic missile.
Iran is rapidly taking over more and more of Iraq even after the U.S. has squandered three trillion dollars there. Obvious long ago!
— Donald J. Trump (@realDonaldTrump) February 2, 2017
3. China
China's President Xi Jinping. Photo: AP
As the world counted down to his inauguration, Trump repeatedly tweeted about China - accusing it of "taking out massive amounts of money & wealth from the US", and building "a massive military complex" in the South China sea without asking the US about it.
China has been taking out massive amounts of money & wealth from the U.S. in totally one-sided trade, but won't help with North Korea. Nice!
— Donald J. Trump (@realDonaldTrump) January 2, 2017
Did China ask us if it was OK to devalue their currency (making it hard for our companies to compete), heavily tax our products going into..
— Donald J. Trump (@realDonaldTrump) December 4, 2016
their country (the U.S. doesn't tax them) or to build a massive military complex in the middle of the South China Sea? I don't think so!
— Donald J. Trump (@realDonaldTrump) December 4, 2016
He also accused the Chinese military of taking a US drone in an "unprecedented act" - then said the US should let them keep it.
China steals United States Navy research drone in international waters - rips it out of water and takes it to China in unprecedented act.
— Donald J. Trump (@realDonaldTrump) December 17, 2016
We should tell China that we don't want the drone they stole back.- let them keep it!
— Donald J. Trump (@realDonaldTrump) December 18, 2016
4. Cuba
Cuba's President Raul Castro pictured in Havana on January 2. Photo: AP
Several days after the death of former Cuban leader Fidel Castro, Trump threatened to "terminate" the resumption of diplomatic relations between Cuba and the US if Cuba was "unwilling to make a better deal".
In 2014, former US President Barack Obama and Cuban President Raul Castro announced dialogue between the countries would re-open, after being estranged for decades.
This led to the resumption of commercial flights, relaxing of US travel restrictions, and the re-opening of embassies.
If Cuba is unwilling to make a better deal for the Cuban people, the Cuban/American people and the U.S. as a whole, I will terminate deal.
— Donald J. Trump (@realDonaldTrump) November 28, 2016
5. Taiwan
Taiwan's President Tsai Ing-wen. Photo: AP
Early in his period as President-elect, Mr Trump made waves by accepting a congratulatory call from Taiwan's President Tsai Ing-wen.
He then wrote on Twitter: "Thank you!"
The move was seen as provocative, as it compromised the United States' long-time One China policy - which does not acknowledge Taiwanese independence from China.
The President of Taiwan CALLED ME today to wish me congratulations on winning the Presidency. Thank you!
— Donald J. Trump (@realDonaldTrump) December 3, 2016
Interesting how the U.S. sells Taiwan billions of dollars of military equipment but I should not accept a congratulatory call.
— Donald J. Trump (@realDonaldTrump) December 3, 2016
6. Israel
Israeli Prime Minister Benjamin Netanyahu. Photo: AP
Israel is one of the rare countries to be praised by the US leader.
In late December, Mr Trump - then President-elect - said Israel "used to have a great friend in the US" and urged the country to "stay strong" ahead of his inauguration.
The tweet came after the US abstained from a vote in the United Nations, which allowed a resolution to be adopted that said Israeli settlements in Palestinian territory have "no legal validity".
We cannot continue to let Israel be treated with such total disdain and disrespect. They used to have a great friend in the U.S., but.......
— Donald J. Trump (@realDonaldTrump) December 28, 2016
not anymore. The beginning of the end was the horrible Iran deal, and now this (U.N.)! Stay strong Israel, January 20th is fast approaching!
— Donald J. Trump (@realDonaldTrump) December 28, 2016
7. Russia
Russian President Vladimir Putin, pictured near Moscow on January 30. Photo: AP
Following the release of a controversial intelligence dossier by Buzzfeed, which said Russian operatives attempted to collect compromising information on him, Mr Trump wrote the country has "never tried to use leverage over me".
Russia has never tried to use leverage over me. I HAVE NOTHING TO DO WITH RUSSIA - NO DEALS, NO LOANS, NO NOTHING!
— Donald J. Trump (@realDonaldTrump) January 11, 2017
While he was still President-elect, he also highlighted their "good relationship" in a series of tweets.
He wrote the US has "enough problems around the world" without creating "yet another one".
Having a good relationship with Russia is a good thing, not a bad thing. Only "stupid" people, or fools, would think that it is bad! We.....
— Donald J. Trump (@realDonaldTrump) January 7, 2017
have enough problems around the world without yet another one. When I am President, Russia will respect us far more than they do now and....
— Donald J. Trump (@realDonaldTrump) January 7, 2017
both countries will, perhaps, work together to solve some of the many great and pressing problems and issues of the WORLD!
— Donald J. Trump (@realDonaldTrump) January 7, 2017