Is the Firefly Algorithm you refer to is the one for Optimization Problem proposed by Prof. Xin-She Yang in 2008 ? If that so, i think you can just modify the continuous version that can be found here :
http://yarpiz.com/259/ypea112-firefly-algorithm
Modified the continous number to binary number by do some rounding to 0 or 1.
"Metaheuristics—the metaphor exposed" where a discussion on "novel" bio-inspired metaheuristics is addressed. There are some online versions in case you do not have access to the journal.
Thank David for the reference. In my research, I would like to apply metaheuristic algorithm such binary firefly algorithm to optimize the "turn-off" - "turn-on" schedule of household appliances.