fredriksthlm's Recent Forum Activity

  • chooseasync is not supposed to send anything. it just change your session into the context you choose.

    (use updateasync to send)

  • fredriksthlm Do you have a priority list of what you need from the instant-games sdk?

    Hi macube I know you are working on a plugin, I have been waiting for it ;)

    For me these functions is the ones I use with browser currently:

    1. updateAsync - works pretty well to do with javascript, but would be a lot easier with a plugin, to link image etc. (Should be implemented similar to shareAsync). I think this is quite easy to do.

    2. chooseAsync - this will be trickier for you, since this will require changing of the type and Id variables in the standard IG plugin, when success. See ashleys response above how to do it, otherwise it will not work with c3 runtime. Also this function needs proper callbacks, so this is the hardest function to fully implement in the plugin I believe.

    3. switchGameAsync - the most simple one.

    4. getSupportedAPIs - this will return the supported features for that particular session. really handy. and also this feature is part of IG Best practice.

    So this is my preffered new functions. I have not started to work with the bot-things.. basically cause I hate bots :D

    the "goal" is to not use the browser/javascript plugin at all.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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 :(

  • dop2000

    Good job, that is the same way we all do it.

    I'm still hoping Scirra will include those functions in the plugin soon..

    construct3.ideas.aha.io/ideas/C3-I-486

  • yes, sometime in coming SDKs it might have an affect, but currently it is not in use.

    So the issue for you was that you used the wrong function, (shareAsync works fine, the also with text if you post in messenger, but not for wall posts for desktop).

    if you want to post an image with text to the people/group you invite you shall use updateAsync, after chooseAsync.

    If you want to know how the functions work you should look in the SDK References

  • shareAsync has different intent types (Invite, Challenge etc.) that are supposed to invoke different dialogs, but apparently they don't work yet in current SDK. Also, the message I enter in the "Text" field is not displayed.

    Yeah, I already found the solution with chooseAsync function, it does work. You can't change the message or image, but it's better than nothing.

    no, they are not supposed to do that.

    chooseAsync does not post any text or image. that is not part of the function.

    you should use updateAsync after chooseAsync to post the image and text.

  • you are using the wrong function.

    share is just posting a picture to a thread or to wall. (why the hell do you want to post a resetbutton to anyone?!)

    the picture "play with friends" is chooseAsync. not share.

  • use Browser plugin, javascript, this function from the IG SDK:

    FBInstant.switchGameAsync

  • Anybody could reply on this post? Wait for your help.

    so... what do you want help with then?

  • I play this game on web browser (desktop), the problem is, ads are not shown. if i play it on iOS FB messenger, ads (interstitial) are shown almost every minute, even though game event only call ads function on gameover only.

    ads not supported on desktop.

    for the ios issue it sounds like your events are triggered constantly. which seems wrong. look over it.

    for the error: do you use any plugins for your game?

    Just don't create spamming gambling porn bots with the software and you are all fine.

  • IG Plugin only.

    Don't know why it is not working for you then. :(

    For me it always works fine. Super easy and quick to set up.

    + System: On start of layout

    -> InstantGames: Load Interstitial ad with placement ID "YOUR AD ID"

    + InstantGames: On load ad success

    -> InstantGames: Show ad

fredriksthlm's avatar

fredriksthlm

Member since 6 Jun, 2016

Twitter
fredriksthlm has 8 followers

Trophy Case

  • 8-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • RTFM Read the fabulous manual
  • x44
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x10
    Lightning Draw First person to up-vote a new Construct 3 release
  • Email Verified

Progress

20/44
How to earn trophies