Renfd's Forum Posts

  • Great! Thanks Ashley

  • So the only time it will be nice is if they will start to restrict the same functionelity for more than one platform. But if that will happen they will remove that feature toataly instead, and then you will need to recode your game as well hehe.

    Actually not in that case. If they remove totally a feature for all platforms, that they already removed in IOS before, this feature will not returns in getSupportedAPI(), so what I did for IOS will apply to all platforms without need to update the games.

    But I understand that this may not be a biiiig deal at all. But also think its relatively simple to implement. Just a expression returning the supported APIs string would work. We can parse it in our side.

  • You can just check if user are on iOS then hide the gamechange-button (or other stuff in the future).

    there will only be restrictions for iOS. never for web or android. due to Apple, so I don't think it will be an issue actually. (I know you have read the comment from Jean Claude about using this function but.. :) )

    That solution would work, but I think its not a good pratice. How you can guarantee that other platforms will not have some restriction on the future? Also who knows this restricion could even be removed in the future.

    I have dozens of games on IG platform. So I would like to avoid to need to update each game every time facebook enforces new restrictions.

    Also I tried to use Jean Claude funcion using Broser.execJS here, but it don't works.

  • Hey Ashley

    Sorry for bothering you again, but now we'll need a callback or expression that returns getSupportedAPIs()

    Without that, C3 games that uses switchGameAsync() will be blocked on IOS devices: https://www.facebook.com/fbgaminghome/blog/important-updates-to-cross-promotions?tags%5B0%5D=developer_blogs

    Also Facebook could create a new restriction at any moment based on deprecated APIs, then I think this funcion is essential.

  • Great! Thanks Ashley!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Why do you need it? There doesn't seem to be a very elegant way to do it - Instant Games doesn't distinguish between closing the dialog and the dialog failing to show at all due to an error. (In other words, closing the dialog is an error :P )

    There are several games there that calls chooseAsync when the player touch the 'play' button, then the game continues after the player selects a friend or when he closes the dialog.

    Example: facebook.com/instantgames/485062721947529

  • Hey Ashley, thank you very much for the new update!

    Just one thing I would like to ask: Could be possible to add the callback event for when the player closes the dialogue(opened by 'Change Context')?

    Its a little thing, so think its not feasible to create a new request on the suggestion platform.

  • Make sure that there is at least one instance of the sprite object you used for the share in the current layout.

  • Better to use the 'On Score Submited' event

  • Renfd can you please guide me how to use Instant game plugin(official) and McFacebookInstantExtended (from store) plugins to make turn based facebook instant multiplayer game.

    Actually i am making Quiz Game.

    Can you please help me .

    Those plugins doesn't have multiplayer integration. I think you can do it with Multiplayer official Scirra plugin.

  • The suggestion has 44 votes already. Thank you all!

    Unfortunatelly 'no status' yet :(

  • You added more things than the original suggestion covered - please try to avoid that, it confuses the purpose of the suggestion and makes it harder to track, any different ideas to the original post should be posted separately. That suggestion will be treated as referring to the original description only.

    FYI I can't see any reason to support getSupportedAPIs(), since you can't do anything with them from events. If there are features which are only sometimes supported, we'd add separate conditions to cover them, but AFAIK there are no such features yet.

    Well, so you can just consider what the original suggestion requests. ChooseAsync (with its callbacks) and UpdateAsync.

  • Hey Ashley, could you take a look? Sorry to bother you, I think you missed this topic.

  • I know that there is an appropriate place for posting suggestions and requests, but the request in question is here: construct3.ideas.aha.io/ideas/C3-I-486

    That was tagged as 'Need more detail' months ago and get buried down by other requests. Now I think all details was given already in the comments, aso the Idea has 31 votes by now. I think this is enough to consider.

    So there are at least two very important things to implement:

    ChooseAsync - We can already use it with exec javascript, but we need the event that triggers when the context changes successfully or when the dialog is closed.

    UpdateAsync - We already have the leaderboard updates, but would be great to have custom updates, with the possibilities to add images, etc.

    For who have interest in theses features, please upvote the idea. Also who have more request for this plugin, please post here so we could group all requests into one.

  • > > Can anyone suggest here how they're approaching to implement the majority of the important features for FB instant games as C3 doesn't have many of them such as chooseAsync(), canSubscribeBotAsync( ),switchGameAsync( ),updateAsync( )

    >

    > you just use the browser plugin, and call the functions via the javascript thing.

    >

    > (I have not used the subscribeBot so cannot comment on that, but the other three works fine).

    >

    > It is though not really good that almost everyone that uses IG plugin will also need to use javascript via browser plugin for many important functions since the IG plugin is too basic :(

    Could you please provide a code snippet so that I can understand how to do it with Browser plugin? Thanks

    Here I use browser plugin for chooseAsync() and switchGameAsync( ):

    Browser > Execute Javascript > "FBInstant.context.chooseAsync()"

    Browser > Execute Javascript > "FBInstant.switchGameAsync('GAMEID')