Open wureka opened 7 years ago
The issue is coming from
grailsLinkGenerator.link(
absolute: true,
action: request.params.action,
controller: request.params.controller,
params: params
)
Did you try to dig into Grails doc to override the domain used by this utility to see if you can override it?
I use Grails 3.2.8 + Facebook SDk plugins 2.7.3.
When I use the server-redirect way (oauth2) to authenticate a user and If my server is behind a firewall, FacebookContext.getCurrentURL() will return wrong URL. And this will lead FacebookContextUser.getToken() error. The error is: Can't Load URL: The domain of this URL isn't included in the app's domains bla bla bla... "type": "OAuthException", "code": 191,
Currently, the workaround way is to change FacebookContext.getCurrentURL in BootStrap like below code: