Facebook's policy did not take account of rebel armed groups that comply with international humanitarian law.