Providing recommendations in social networks by integrating local and global reputation