Domanda

This question is related to the question linked below, but instead deals with the interactive console included with the Facebook SDK:

Facebook Post to wall FB.Feed issue in Unity Facebook SDK

I have two screenshots to show the issue I'm having. This first screenshot is the FB.Feed dialog I get the first time I allow the app permission to post to my wall. It also shows if I invoke the dialog and I've given NO permission for it to post.

enter image description here

This particular dialog has trouble displaying the app's icon. It also grays out the entire screen, and doesn't allow any click throughs to the Unity app running, which is ideal but is different than the behavior of the other dialog, which I'll show next.

Here is the second screenshot, taken after refreshing the application page. The background app is not grayed out, and in my application, you can click through to the app in the background and interact with it, right through the dialog box. Obviously, this is not ideal.

enter image description here

So my questions are, what's causing these dialogs to change, and how can I make the API show the one that I want?

È stato utile?

Soluzione

The first one happens only when the person first allows your app. First time a person allows your app they will see the normal javascript dialogs. However, if they come back to your game, they will see the second dialog that occurs inside your game.

We prevent a normal click-through in our dialogs that should be enforced by Unity's Modal Window: https://docs.unity3d.com/Documentation/ScriptReference/GUI.ModalWindow.html

However, it looks like Unity has a bug on their end that might clicks through. I've messaged Unity and they are now aware of the issue. Thanks for reporting that.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top