According to Joyce <i>>foil</i> means <i>cliff</i>.
Muck can mean pig, but occasionally it is a perversion of <i>magh</>, meaning a 'plain' - only usually in the transliterated English version of the name though.
All things considered I would say that Foilnamuck is probably 'Cliff of the Pig'.