The match will take place on Saturday 28th July, kicking off at 3pm.
A West Ham XI visited Barnet last season and the Bees ran out 2-1 winners, Jean-Louis Akpa Akpro and John Akinde scoring either side of the break.
Home ties against West Bromwich Albion and Ipswich Town have already been announced for pre-season along with visits to Maldon & Tiptree and Hampton & Richmond.
Further friendlies and ticket details will be announced in due course.