Who are these "persons"?
It can't logically be the foreign nationals who are attempting to help a campaign. They're not under the jurisdiction of US federal law.
It also can't logically be the candidates. Otherwise, the obvious tactic would be to provide overt, unrequested aid to the opposition candidate(s) and send them all to jail.
I'm not sure it can be Facebook or other Internet sides. It is true that Facebook is a US company, but the content on their sites is protected under the DMCA safe harbor exemption. And then the law wouldn't handle the case of sites not under US ownership.
FECA dates back to the 70s, and it doesn't seem to do a good job of handling the globalization of the Internet. If someone from overseas looked at the facts themselves and, without talking to a candidate, just plastered Google and Facebook and YouTube and Twitter with endorsement of one candidate and criticism of another, is it reasonable to try to stop them?
Criminal violations of US laws whose prohibition is not expressly territorially restricted that occur outside of the US are successfully prosecuted in US courts with some frequency. Bringing people before the court for prosecution may be challenging where extradition isn't an option, but outright kidnapping from a foreign country or even full-scale military military invasion to do so have occurred.
"The Federal Election Campaign Act (FECA) prohibits any foreign national from contributing, donating or spending funds in connection with any federal, state, or local election in the United States, either directly or indirectly. It is also unlawful to help foreign nationals violate that ban or to solicit, receive or accept contributions or donations from them. Persons who knowingly and willfully engage in these activities may be subject to fines and/or imprisonment." [0]
The definition of "foreign national" is quite broad.
How this works with regards to PAC contributions is unclear to me.
[0] https://transition.fec.gov/pages/brochures/foreign.shtml