The move comes as the company, stung by criticism since the 2016 election, says it is taking steps to curb ‘spammy behavior.’