For the abbreviation,"an FOIA" is correct. For the term "a Freedom of Information act" is correct. Its based on the sounds, not the word being abbreviated.
> It was initially called “Structured English Query Language” (SEQUEL) and pronounced “sequel”, though it later had to have its name shortened to “Structured Query Language” (SQL) due to trademark issues.
Ie: a friend.