It's not uncommon for players to recruit potential team additions during the offseason, whether that be in person, over the phone, or via social media. Players can speak with one another but teams are not allowed to speak with free agent targets while they remain under contract.
NFL teams were allowed to open communications with agents two days before the start of the new league year on March 13. San Francisco opened free agency by signing players like linebacker Kwon Alexander, running back Tevin Coleman, and others. The team also traded for former Kansas City Chiefs pass rusher Dee Ford.