question

adnannazir2012 avatar image
adnannazir2012 asked

What to Add in Unity App Domains Field for WebGL for Facebook Canvas Applications hosted for Facebook

Hello Guys.

I have tried searching and didn't find any solution regarding it. Please have a look at this URL.

https://apps.facebook.com/345755845824984

It's a multiplayer game that I have made using Unity Photon Plugin for PlayFab. The game works fine on Android and iOS but for Facebook as you guys know, we need to put all URL that are being accessed in the app in the Developer console. Or Facebook will throw errors and won't allow to move on.

Please see the screen shot of field where I need to put app Domain URL

also please check the error message.

unity3d
screenshot-1.png (70.1 KiB)
screenshot-2.png (23.7 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

You don't need to put anything in App Domains. The issue is an app configuration issue in Facebook. Can you check that Facebook Login is turned on in their developer portal, and that and URLs/paths you've set in your app are correct?

15 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

adnannazir2012 avatar image adnannazir2012 commented ·

Yes I have enabled Facebook Login but what URL should I be setting ???

0 Likes 0 ·
capture1.png (58.4 KiB)
brendan avatar image brendan adnannazir2012 commented ·

If you want to add https://{titleId}.playfabapi.com (where {titleId} is your actual Title ID), feel free, but it shouldn't be necessary. Can you provide us with access to your app configuration in Facebook, so that we can have a look?

1 Like 1 ·
adnannazir2012 avatar image adnannazir2012 brendan commented ·

Here is link to the game !

https://apps.facebook.com/345755845824984

I have put that as well before with no success!

0 Likes 0 ·
screenshot-7.png (54.4 KiB)
Show more comments
Show more comments
adnannazir2012 avatar image adnannazir2012 adnannazir2012 commented ·

I have added you. Please check

0 Likes 0 ·
brendan avatar image brendan adnannazir2012 commented ·

So, Site URL should be your game's website - I've removed that for now, since pointing it to your playfabapi.com endpoint isn't valid.

Also, our Facebook login takes a Facebook token - we don't provide an OAuth redirect URI. So I've removed that, as well.

I'm not really seeing any other issues in the configuration, though. What specifically did you see when you cleared your cache and thought you had it working?

1 Like 1 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.