your friend needs to display their bar code, or send it to you via email, or another means. Even print will work.
Open BBM and go to Invite Contact > Scan a person's barcode
You camera will come up. Point it at the bar code, orientation matters.
Don't try and take a picture, just point it at the barcode and let the autofocus do its thing.