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.

47 VOTE

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.

  • Chad Joseph Nuñez
  • Nov 8 2018
  • In development
  • Attach files
  • Stan Anderson commented
    November 9, 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! 

  • Chad Joseph Nuñez 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.

    https://www.construct.net/en/forum/construct-3/general-discussion-7/construct-master-collection-en-139046

    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.
    thanks!

  • 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.

  • Chad Joseph Nuñez 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.

  • Chad Joseph Nuñez 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?

  • Chad Joseph Nuñez commented
    November 14, 2018 06:54

    Yes.
    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.

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