The White House on Thursday cried foul against Samsung's distribution of the photo taken by Boston Red Sox star David Ortiz with the president earlier this week, CNN Money reported.

On Tuesday, when the 2013 World Series champs visited the White House to meet with President Barack Obama, Ortiz requested an impromptu selfie with the leader of the free world.

Ortiz, who has an endorsement deal with the Samsung, tweeted the photo and was followed by the electronics manufacturer re-tweeeting his post to its 5.2 million followers.

White House press secretary Jay Carney said that the president nor the White House intended for the photo to be part of Samsung's marketing campaign and did not condone the advertisement action taken by the company.

"I can say that as a rule, the White House objects to attempts to use the president's likeness for commercial purposes," Carney said. "And we certainly object in this case."

Carney declined to comment on any legal matters the White House may be taking against Samsung, according to CNN.

Samsung, however, did issue a statement to the Boston Globe following the Red Sox visit to the White House.

"When we heard about the visit to the White House, we worked with David and the team on how to share images with fans," the statement read. "We didn't know if or what he would be able to capture using his Note 3 device."

Ortiz, who gifted a personalized Boston Red Sox jersey to the president, told the Globe the selfie was spontaneous and Samsung didn't even know he was going to request the photo using the phone.

"I wasn't trying to do anything," Ortiz said. "It just happened in that moment. It was a fund thing. I signed the deal with Samsung a few months ago. They didn't know what would happen. Nobody did."

Samsung's selfie isn't the first time a company has tried to use the likeness of President Obama. In 2010 Weatherproof Garment Company used a photo of the president sporting their coat and posted the ad on a Times Square billboard.

The company drew criticism from the White House as well and the company was ordered to remove the ads that were intended to stay up for two months.

Samsung's photo of the president was the second time the company tried to market a selfie photo in its advertisements as they previously used Ellen DeGeneres' celebrity selfie from the Oscar's last month.