Mastodon uses the OStatus protocol, so if that is active on your Friendica node then you can follow, be followed and communicate with Mastodon users. GNU social groups are currently not supported by Friendica, but this is planned https://github.com/friendica/friendica/issues/1666.