Journalist James Foley, of Rochester, N.H., responds to questions during an interview with The Associated Press, in Boston, Friday, May 27, 2011. Foley, who was working for the Boston-based GlobalPost while reporting on the conflict in Libya, was captured along with two others by Libyan government forces on April 5, 2011. Foley, American freelance journalist Clare Morgana Gillis, of New Haven, Conn., and Spanish photographer Manu Brabo were released by Libyan authorities last week. (AP Photo/Steven Senne)
Journalist James Foley, of Rochester, N.H., responds to questions during an interview with The Associated Press, in Boston, Friday, May 27, 2011. Foley, who was working for the Boston-based GlobalPost while reporting on the conflict in Libya, was captured along with two others by Libyan government forces on April 5, 2011. Foley, American freelance journalist Clare Morgana Gillis, of New Haven, Conn., and Spanish photographer Manu Brabo were released by Libyan authorities last week. (AP Photo/Steven Senne) Credit: Steven Senne

A Washington-area hamburger chain is facing criticism after it says a social media contractor posted an ad on Twitter depicting a New Hampshire freelance journalist who was executed in the Middle East.

The incident unfolded over the weekend after a tweet for the Z-Burger chain showed a photo of James Foley of Rochester, who was kidnapped in 2012 and beheaded by the Islamic State in 2014, with an image of a hamburger. According to Washingtonian, the ad read, โ€œWhen you say you want a burger and someone says okay letโ€™s hit McDonalds.โ€ Under a picture of Foley was the message โ€œYou disgrace me.โ€

The Twitter ad has been taken down.

Diane Foley, the mother of the slain journalist, wrote Tuesday in a Twitter message for the James Foley Foundation that she was โ€œvery saddened that @Zburger would be so insensitive and ignorant of othersโ€™ pain while marketing their hamburger.โ€

On Wednesday, Peter Tabibian, owner of the Z-Burger chain, repeated his apology for the incident and explained that he hired Valor Media of Raleigh, N.C., to run his companyโ€™s Twitter account. He said he didnโ€™t approve of the posting beforehand, adding that he demanded the contractor take it down after he heard from an angry customer.

โ€œIโ€™m really sorry about what happened,โ€ Tabibian said. โ€œI take full responsibility for what happened. It is my company.โ€

He continued: โ€œI trusted someone to do stuff on behalf of us,โ€ he said. โ€œI made a big mistake doing that. Iโ€™m very sorry to the Foley family and his friends and anybody who knows him.โ€

Valor Media didnโ€™t immediately return calls and emails seeking a response, but issued an apology on Twitter.

In a Twitter message, Z-Burger said Valor had โ€œcaused unnecessary grief to the family, friends of journalist James Foley, and has been a callous misuse of images related to his untimely death in Iraq at the hands of terrorists.โ€

On Tuesday, Tabibian posted on Twitter that he was ending his relationship with Valor immediately.

In an interview Wednesday, Tabibian said he hired Valor about three months ago after checking references, giving them access to post to his businessโ€™ Instagram, Facebook and Twitter accounts to promote the chain.

He said when he saw the post on Foley, he โ€œalmost fell out of his chair and cried.โ€ He said heโ€™s tried to explain and apologize to many people, including those who knew Foley.

Michael Valor, who runs Valor Media, took responsibility for the mistake.

โ€œBeing a leader means a mistake in your organization is your mistake,โ€ Valor tweeted Tuesday. โ€œPeople see this situation and most would crumble because of pressure. I will always stand tall, tell the truth and quickly fix any mistake my company or myself makes. I will always strive to be better!โ€

Valor said โ€œZ-Burger had nothing, nothing, absolutely nothing to do with this at all.โ€ He also said, โ€œI want to apologize for putting Z-Burgerโ€™s reputation on the line.โ€

On Twitter, both Z-Burger and Valor promised to make donations to the James Foley Foundation.