A similar policy will be applied to Instagram, the company’s photo-sharing network, Facebook said. The measures will be put into effect over the next few weeks and will apply worldwide at Facebook, which claims 1.3 billion active users.

“We will remove reported posts that explicitly indicate a specific attempt to evade or help others evade the law,” the company said in a statement.

“It is very important to note that Facebook and Instagram are not e-commerce sites,” Schneiderman said in a conference call with reporters. “You cannot actually purchase a gun on Facebook, on Instagram, but because they’re such enormous platforms with so much communication, they provided an open marketplace that really allowed anyone, including minors, felons and people with mental disabilities, to exchange information.

“There are sellers out there who want to circumvent state and federal gun laws — and we have one of the toughest gun laws in the country in New York and are being very vigilant about enforcing it — and there are folks who want to use the social platforms to promote the sale of weapons with no background checks, and no questions asked,” the attorney general added.

As CBS 2’s Dick Brennan reported, the move came after a petition by Moms Demand Action garnered more than 230,000 signatures.

“What they’re doing today is to start closing the gun show loophole that is so prevalent in this country, and frankly the loophole that Congress refuses to close on their own,” the group’s founder, Shannon Watts, told WCBS 880’s Wayne Cabot

“This is a huge win, and this is actually going to save lives. Even though they don’t sell guns on their platforms, people are arranging to meet across state lines, people are arranging to sell and trade guns without background checks, and that won’t happen anymore.”

Tom King, president of the New York affiliate of the National Rifle Association, acknowledged that Facebook is allowed to set its own rules but said he regards the new restrictions as “a kind of limit on our First Amendment rights.”

Although his group, the New York State Rifle & Pistol Association, doesn’t sell guns, he wondered whether it could be blocked if somebody reported the organization’s Facebook page.

“This is something that could greatly get out of control very quickly,” King said.

New York has some of the nation’s toughest gun laws. It requires a background check for private gun sales and prohibits sales of some popular firearms, such as the AR-15 rifle.

Under the new policy, Facebook would allow a user in Texas to list an AR-15 for sale, since the gun is legal there, as long as it wasn’t offered for sale in states where the weapon is illegal. But the company would delete a similar post from someone in New York.

It would also remove posts from any state in which a gun seller says a background check will be skipped, even if such checks aren’t required where the seller lives.

“This is one of many areas where we face a difficult challenge balancing individuals’ desire to express themselves on our services and recognizing that this speech may have consequences elsewhere,” Facebook said.

“Law enforcement offices like mine and advocacy groups are going to have a direct pipeline to Facebook to flag posts that may facilitate or promote potentially illegal activity, so they can be reported,” Schneiderman said.

The company already has systems in place to remove advertising that is false and deceptive, and it prohibits ads for illegal drugs, tobacco products and prescription drugs.

There’s no way to know how many guns are sold via Facebook, because the transactions are actually completed offline, said John Feinblatt, chairman of Mayors Against Illegal Guns. But such sales have occurred.

In Kentucky, for example, federal authorities in February charged an Ohio man with illegally selling a 9 mm pistol to a Kentucky teenager in a transaction arranged through Facebook.

In an online petition, Moms Demand Action warned that Facebook and Instagram could also be used to sell guns to convicted felons, domestic abusers or others barred under federal law from obtaining a firearm. That list also includes people judged mentally defective.

Feinblatt said Google Plus and Craigslist already prohibit all gun sales, legal or illegal. But he said there are “virtual gun shows” online. His group issued a report in December showing 66,000 active ads on a popular gun sales website called Armslist.

The report said 16 states and the District of Columbia require background checks for private firearm purchases.