[core] add maxwidth param, passed to facebook and pinterest plugins