Have some food and chat with the other guests. Before leaving, you should salam with the couple again and give a token of money to show your appreciation. Put the money in an envelope with a card or with your name written on it. The amount depends on your financial means and your relationship with the recipient. A distant friend is not really obligated to give any money.