Multiple Facebook apps supported by the same Spring app to download

So, I followed the tutorial below (classic) to download spring using facebook:

https://spring.io/guides/tutorials/spring-boot-oauth2/

Everything is working fine, however, I cannot find the documentation that will help me implement my specific use case. So here it is:

  • I will have two facebook apps: one for the owner , and another for the average user
  • These two facebook applications will request different permissions (for example: for the owner ), he will ask for permission to publish on the fanpage page and for the regular user ll only for basic user information)
  • There will be two real applications: one mobile (iOS and Android) and another browser-based application (which is not very important)
  • The REST API will be role-based, which means that the owner will have OWNER , and the regular will have REGULAR_USER , so, for example, a regular user will not be able to call the API to publish on the fanpage
  • Both applications will allow you to log in with or without facebook, because I need a user table to store additional information and therefore
  • In the end, an ordinary user can log in as the owner if he downloads the application ** owner *

, , :

  • facebook, spring
  • APP ID X OWNER APP ID Y REGULAR_USER
  • ( YML) facebook
  • facebook,

, . , .

!

+1

All Articles