Construct 3 suggestions & ideas

Suggest and vote on ideas for Construct 3! Please note this is only one aspect of planning. We do not guarantee any features here will be implemented, even if they are top-voted ideas. The aim is just to collect feedback. Remember to search for existing submissions before adding an idea, describe your ideas as comprehensively as possible, and vote for plausible ideas that are well thought out. Please see our full guidelines on suggesting features.


Facebook and Google Play :: Return the "Access Token" and "ServerAuthCode".

Hey Construct Team. Sorry to bother.

I would like to ask for a feature request to add expressions for the Access Token and ServerAuthCode on the Google Play plugin and an expression for the Access Token on the Facebook plugin.

The amazing thing about the current Facebook plugin and Google Play plugin is that they already have the prerequisites needed to achieve the features.
So, it may just be a minor get call and editor enhancement for some great new features.

[See screenshot 1].


Importance ::

The benefits to getting these features is that we can extend the Facebook plugin or the Google Play plugin without having to re-create the built-in addons for the Web. I believe the Construct Team recommended this approach, so this might be the best approach.

We could already extend it just by getting the plugin properties but it's also great to have features built-in to enable server-side features.

We could unlock cloud features using the built-in Facebook and Google Play plugins to sync data and lots more, for games.

Construct Team Intervention ::

The developers could make their own like that, like what I did for the mobile platform where I made my own social plugins, the Mobile Google Plus and the Mobile Facebook. But, I've noticed that it is such a waste to re-create or fork the 2 well working web plugins just to enhance its features.

[See screenshot 2].
[See screenshot 3].

Since these are supposed to be main features, I believe with confidence that having these features implemented officially by the Construct Team is the best approach.


Thanks in advance for looking into this.

  • ChadoriXD
  • Nov 8 2018
  • Shipped
SDK / Plugins
  • Jan 11, 2019

    Admin Response

    Facebook and Google Play are two different cases. Since there is only one suggestion filed for both, we cannot track them separately. We have implemented the access token for the Facebook plugin and this has shipped, so we are now marking this feature as shipped. Google Play is a different and more complicated case which needs to be handled separately.

    The Google Play plugin actually uses two APIs: the web API and the Android app API (via Cordova). We were forced to implement the Android app API separately since Google disabled access to the web API from Android apps and refused to reinstate it, requiring us to reimplement the plugin with a second API. The web API simply involves methods on a global object (gapi); any third-party addon can simply use this as well and make its own calls, therefore no further extensibility ought to be required.

    The Android API is more complicated and requires a Cordova plugin interacting with Java code. However in this case you should still be able to do something similar using GoogleSignIn.getLastSignedInAccount(cordova.getActivity()) to get the Account object on the Java side, which again you should already be able to do. Therefore in both cases it should not be necessary to expose an additional token to JavaScript.

    If you think there still need to be further changes, please file a separate suggestion specific to Google Play, and include the precise technical details of why the above approaches won't work, and exactly which access token available from which APIs you want to use, in both the web and Android API cases.

  • Attach files
  • Stan Anderson commented
    November 09, 2018 14:18

    I use the Construct master collection. This will be very useful for us to use for the web platform too by logging into them.
    Please scirra! :D

  • Mauricio CV commented
    November 10, 2018 00:55

    Hi, Scirra team. It'd be awesome to be able to handle those expressions in order to create new plugins! 

  • ChadoriXD commented
    November 10, 2018 19:53

    I forgot to mention. For instance, this will be very useful for those who use or plan to implement Cloud Data management into their web games.
    This is useful for the PlayFab Master Collection under Construct Master Collection.

    This will make the built-in Social Web plugins compatible with the PlayFab Master Collection.

    Thanks for the time.

  • MikalDev commented
    November 10, 2018 22:48

    It would be great to be able to handle those expressions in order to create new plugins and for the Master Collection that I use. 

  • Joseph Marco commented
    November 11, 2018 03:19

    Please support this! I also use the Construct Master Collection! We need this for the Web.
    We need online features for our games.

  • Admin
    Ashley Gullen commented
    November 12, 2018 13:47

    This should be straightforward and I'm all for anything that helps avoid duplicating official addons. I think we will try to proof-of-concept something with the Facebook plugin using the SDK APIs and see how that works - if it does then we'll extend it to Google Play.

  • Admin
    Ashley Gullen commented
    November 12, 2018 14:50

    See this manual entry for a guide on how to obtain the access token from the Facebook plugin, which is supported in r125.

  • ChadoriXD commented
    November 12, 2018 18:59

    Thanks a lot!
    Adding it that to the SDK is very thoughtful. It will be great for automation.
    I do have a question, @Ashley. Do I have to make a small extension plugin to get the Access Token or will you be also adding the expression for the Access Token for the built-in Facebook plugin? 

  • Admin
    Ashley Gullen commented
    November 12, 2018 21:12

    What would you do with an access token expression? I assumed you would only use it to pass it to another addon, in which case the addon can get it itself using the API, without needing to expose it to the user.

  • ChadoriXD commented
    November 13, 2018 00:44

    The thing is, the PlayFab Master Collection [Addon Collection] is already finished. I designed each addon beforehand to be independent from external addons including 3rd party plugins and built-in plugins, just in case I end up some compatibility problems, and so I can still adjust if ever.
    But the main priority is compatibility with built-in addons without being dependent from them. Just in case the built-in addons get some changes into them in the future.

    So, I made it that the Authentication [Login to Social Account] plugin and Sync Manager [Bind or Link to Social Account] can just receive the Access Token or ServerAuthCode from any Social Addon it can get an Access Token or ServerAuthCode.


    I could still do with the SDK update that you've provided, at least now I can work with it.
    But, in this case, I still will be making a small extension plugin to return the Access Token, for example. 
    It would be like Facebook Extension plugin, that mainly only return the Access Token.

    That is fine, but wouldn't it better also to receive from the Facebook Plugin itself?


    Thank you for the time.

  • Admin
    Ashley Gullen commented
    November 13, 2018 11:06

    I don't see why that explanation means an expression is required. Anywhere you use an expression, it could actually just use an internal API, right?

  • ChadoriXD commented
    November 14, 2018 06:54

    But I think we have a slight misunderstanding.
    I was asking if you were adding expressions into the built-in Facebook plugin and Google Play plugin. If not, it is fine. I will make myself a plugin using the SDK Reference you have provided.

    I am looking forward to the reference for the Google Play plugin too. Thanks a lot!

  • Emanuelle Garcia commented
    November 20, 2018 20:40

    Any news about this?

  • ChadoriXD commented
    December 02, 2018 14:05

    Emanuelle Garcia The Construct Team has already made the SDK reference after around 3 days when this feature was requested. Here is the link given by Ashley:

    Reference :


    If you are using the PlayFab Master Collection under the Construct Master Collection, I've also worked on and developed an addon to integrate the Construct Team's provided API inside the collection (PlayFab Master Collection). This will help extend Social Authentication into the PlayFab Master Collection.

    There is also a free basic version of the addon:


    Thank you very much Construct Team and Ashley for developing and adding this reference into the SDK.
    It is very helpful, it will be very useful to use with addons especially to those like from my Construct Master Collection that do Social Auths on the web. Users of the collection can now authenticate through the social web platforms with the built-in Facebook plugin and can access more features.
    I look forward to the Google Play SDK too. Thanks again.

     I made a free basic version of the addon too with the SDK reference you've provided, for everyone to use. Even though you've already provided the great code example. It's also a good real-case addon example to those who want to integrate it into their own addons.

    Reference ::