play-components / play-fbconnect

Easily integrate Facebook authentication into any Play framework application.
26 stars 13 forks source link

Absolute Url #3

Open 7uc0 opened 13 years ago

7uc0 commented 13 years ago

Hi Murz,

Playin around with your contribution, I'm getting the following error when deploying my app to gae and clicking on the link. Seems like absolute url is not found...

https://graph.facebook.com/oauth/authorize?client_id=185738688110485&display=page&redirect_uri=/fbconnect/oauth/callback

Am I missing something ?

thx alot

mmurray commented 13 years ago

Very strange, this module uses the Play method Router.getFullUrl to build the redirect_uri, which is supposed to return an absolute URL (internally, it uses Request.domain which is set from a Netty or Servlet request depending on how you are deployed).

So in short, I have no idea how that happened and I am unable to reproduce. If you could provide a test case or something that would be helpful.

0xRoch commented 13 years ago

I think it would be better to set the domain name in application.conf, In case the application is using more than one domain TLD : facebook only accept one domain