Unity3dAzure / AppServicesDemo

Azure App Services demos for Unity
https://www.deadlyfingers.net/tutorial/azure-app-services-for-unity3d
MIT License
27 stars 13 forks source link

Details of getting facebook login to work #19

Closed punkouter2021 closed 8 years ago

punkouter2021 commented 8 years ago

So I created an app on facebook.

Copied the key and pasted that in the code.

Turned on authentication for facebook in the Mobile App and checked everything

Ran the code. Clicked Login. And I get

image

punkouter2021 commented 8 years ago

I fixed it partly.. Didn't completely save the authentication piece before. So I login and I do not see errors but nothing happens.. and the breakpoint at OnLoginComplete is never reached

image

punkouter2021 commented 8 years ago

oh. soon as I saved that it just hit the breakpoint..

punkouter2021 commented 8 years ago

Also can't find hello api on the callback... Well atleast the CRUD on the highscores table works..

deadlyfingers commented 8 years ago

@punkouter

  1. I see you are using 'http://' -> I recommend you use 'https://' instead for mobile app services. But not sure if the auth errors are because of just that?
  2. Also this Unity 'referenced script' is missing error is annoying. I get this too and have added this as issue #15. Remove the broken script from the GameObject and try to reattach script to repair the link.
  3. You also need to add Facebook App ID and Secret to your Azure App Service Facebook Authentication settings. Also check the following settings are configured in your Facebook app. facebookappdomains facebookappsecurecanvasurl facebookappadvancedsettings

    If in doubt where to set this info check out full documentation if need be - https://azure.microsoft.com/en-gb/documentation/articles/app-service-mobile-how-to-configure-facebook-authentication/

Let me know what, if any of those pointers fix the issues you encountered. But I reckon 'https://' will be needed for Facebook auth as I remember having problems myself with 'http://'

punkouter2021 commented 8 years ago

App ID AND Secret? I thought it was only one... Ill look at it again ..

deadlyfingers commented 8 years ago

@punkouter will be closing this issue as I have added developer guide link to readme. http://www.deadlyfingers.net/azure/azure-app-services-for-unity3d/

Please reopen if this is still an issue.