Not if as part of sign in the app asks permission to get that information. That is how all oAuth logins from FB to Google to LinkedIn to Github work. You ask for permission to get exactly what you want and once granted the app can get that information without violating any TOS or getting banned
It's not the gathering per se, it's what you do with it.
When I checked their platform policies (admittedly several years ago), they explicitly forbid other social networks from using FB-provided logins and data. This seems to have changed, and at the moment I can't find anything of the sort in their current platform policies; but there is a "no reimplementation" clause that is so broad, it could easily be used to ban apps that reimplement anything FB already offers (friending, image sharing etc etc).
I expect that would be against TOS and would result in an immediate ban.