I traveled to Beirut for a vacation in March of this past year. On my way back into the U.S., Customs must have flagged me for some reason and I had to go through the whole inspectin process of going through my bags, asking who I was there to see, what I did when I was there, how my trip was paid for etc.. I obviously had nothing to hide and was eventually allowed through with no further problems. I didn’t know anybody in Lebanon the last time I went, but, throughout my vacation did meet some people I have kept in touch with via email and travel forums.
My question is this, I am going back there for a longer stay in August to see everything I didn’t get a chance to see last time. I know that I will again get flagged due to the destination and time frame.
So, when they ask me this time if I know anybody there, I am assuming I should be honest, but, it’s not like I really know these people that well or plan to spend my vacation time with them. I am wondering if I should even say that I know anybody there or not, I don’t want to lie and end up in some interrogation room somewhere. Maybe I am overreacting but it was really not a pleasant experience the last time and I just want to know what to anticipate/expect this time around.
Also, I work for a state government agency and they asked me for my identification/badge. I purposefully do not travel with that kind of documentation as I don’t want to be overseas and be associated with a government which others may find oppressive. Should I bring my identification with me this time?

Honesty is always the best policy in situations like that. You never know what information they have.
Since they asked for your badge last time it would be a good idea to bring it along. It is not like you need to display it while in Lebanon