In 1923 Hueber took part in an international communist meeting in Essen, organized to protest the French occupation of the Ruhr. He was arrested by French authorities for his participation in the event, a fact that elevated his standing within the Communist Party. He was imprisoned at La Santé Prison. The fame he achieved from being arrested helped him to get elected to the French National Assembly the following year. Hueber was elected from the 1st constituency of Bas-Rhin.