Facebook says it will not allow foreign-funded advertisements for upcoming presidential and legislative elections in Indonesia, the world’s third-largest democracy, hoping to allay concerns that its platform is being used to manipulate voting behavior.