Is it ok for us to tell others that we have been praying for them, or are we meant to keep things like that to ourselves? say for example a friend is sick and you say I have been keeping you in my prayers?

There is no problem in telling another that you are praying for them. Even scholars such as Ayatullah Khamenei tell the people that they are praying for them in Namaz e shab