Facebook URL for Authentication?
Options
MTM
✭
Hi,
I want to configure my self hosted Photon server to enable Facebook authentication but I am am unable to figure out what facebook URL should be pasted in app.config for AuthSettings?
Any help will be appreciated,
Thanks.
I want to configure my self hosted Photon server to enable Facebook authentication but I am am unable to figure out what facebook URL should be pasted in app.config for AuthSettings?
Any help will be appreciated,
Thanks.
0
Comments
-
you may find it here : https://doc.photonengine.com/en-us/realtime/current/tutorials/custom-auth-facebook-javascript
js.src = "https://connect.facebook.net/en_US/all.js#xfbml=1&appId=" + ""0 -
Hi chvetsov,
Thanks for the reply.
The page you have mentioned is for Photon Cloud. And there "Authentication URL is set by Exit Games."
The js.src URL you mentioned is for Facebook JavaScript SDK.
I am not using photon cloud and self-hosting it. There I need to set the Facebook Authentication URL by myself in app.config in AuthSettings tag. That Facebook Authentication URL is nowhere given0 -
"https://connect.facebook.net/en_US/all.js#xfbml=1&appId=" + "". this url does not depened on sdk you are using. just use it0
-
Hi chvetsov,
Its not working.0 -
Hi @MTM,
ExitGames provides facebook authentication out-of-box. You don't need any URL, just set the proper custom authentication type. Please follow the configuration example in the Custom Authentication docs page.0 -
Hi,
I think there is some confusion here - let me try to clarify.
1. Photon with out-of-the-box Facebook auth is available for our cloud only. This is what you set up via your dashboard.
2. Photon self-hosted with Facebook auth requires some more setup and a Facebook Authentication Provider (i.e. a proxy-auth-http-service), that does the actual authentication against Facebooks Graph API. For the Photon Cloud we host this provider for you. For Photon self-host, you will have to do that yourself.
Regarding the settings in your Photon Server config this would look something like:<AuthProvider Name="Facebook" AuthenticationType="2" AuthUrl="https://your-facebook-auth-provider-url" appid="your-facebook-appid" secret="your-facebook-secret"/>
Please see https://github.com/exitgames/photon.custom-authentication for a dummy implementation of an Authentication Provider.2