Open facebook in your smartphone.
In the notification center, you can see the birthday of your friend.
Type your birthday wish in that text box and post it. For example as shown in the below image.
Finally you can see your wish on the friend's timeline.