Sharing on Facebook - IAP?

0 favourites
  • 6 posts
  • In my game when a player loses a life, they can get one back by sharing a message on Facebook that advertises the game.

    How would I go about implementing this? Is it a kind of In App Purchase?

    If so, which tutorial do I need to read?

    Thanks all

  • It is not IAP related, since IAP plugin is not interfaced with Facebook.

    In the absolute, you only need the Facebook plugin - so the manual article https://www.construct.net/gb/make-games ... e/facebook - to use it.

    You prompt your user to share, and from there you could add a value to your life total, something like that.

    Nevertheless, the system can be "defeated", since there is no trigger "back" to tell you the user DID share. No way around that though I'm afraid, unless you use the SDK to add this missing trigger for your own usage.

  • Thanks for replying.

    So looks like there’s no real benefit to share solely on Facebook for an extra life if there’s no guarantee the user will actually share. So instead I’ve beeen looking into sharing high score screenshots on social media.

    I’ve found the following tutorial for C2 (https://www.scirra.com/tutorials/1457/s ... oid/page-3) but on page 3 it mentions webstorage - any idea how I adapt this for C3 and use localstorage?

    Cheers

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The usage of local storage is plenty described in the How do I FAQ for Construct 2 and works the same for Construct 3.

    Local storage is close to webstorage with an asynchronous behavior.

    You'll need to use the action "Is existing" and manage both answer status in two separate events.

    -> X is existing, set the key and the value.

    -> X is missing, create the key, set it to the value you want.

    X is set => You've just saved your key and its value.

  • I'm following the tutorial and on page 3 it tells me:

    [quote:1956bz4e]Then head back to the Local key exists event and add the action "System > Set value" and set the variable to "ScreenshotLink" and use the value "WebStorage.LocalValue("Screenshot")"

    ...but C3 doesn't let me enter this value, instead I have entered:

    ...is this correct?

    Also on page 4 I have to download and install he PhoneGap plugin. I've downloaded it, but have never installed a plugin before. Which of the downloaded files do I need to install and where?

    Thanks.

  • OK - so i'v found the Addon Manager in the Menu - but the manual says I can only install .c3addon files, but there are no .c3addon files in the PhoneGap plugin folder.

    Can anyone let me know what I'm doing wrong or how install this plugin, if indeed it it the right plugin?

    Thanks.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)