h1k3's Forum Posts

  • No the API is forward compatible so if you start an app today than all future Facebook updates will work with it until the particular update expires. Heres how it works.

    You start an app today using Facebook 2.5

    Facebook gaurantees that each version will be available for x amount of months I think around 16 months.

    So you can use the 2.5 api until that 16 months expires.

    Once that time expires, your app will be forced to use the newer API say version 30.4 or whatever.

    At that point you will need to update any broken parts to the newer version 30.4 API or stop using Facebook.

    Now thats your current app.

    If you take the exact same copy of your game designed for version 2.5 and install it as a brand new Facebook game in a month or so, you will find that your required to use the latest version in this case version 2.6.

    Many of your features will still work from the old app, in fact it may work just fine. Facebook only pushes small changes at a time. However you might find that a persmission had changed or the way you used to post a score has changed just enough to break your code. At which point you'll just need to update your code accorindingly and you will once again be able to use the app.

    As for asking for a user defined string of permissions, the official plugin currently doesn't do that. There are third party options, for example I have a plugin that I use for Facebook in order to do some more extensive tasks. These options are not the official plugin though so they are not allowed in places the the Scirra arcade.

  • Ive got a plugin to do just that. Send me a message if you still need help.

  • They update the api every month and its not backwards compatible. To compound the issue you app is tied to the most recent api so an app you made last month may or may not work if you recreate it a month later. The best thing to do is dont hardwire the permissions into the action anymore. Instead have a string in the action that allows for a comma seperated list of permissions. Then the user is responsible for updating the permissions when needed.

  • Problem Description

    With the new Phonegap builds, all Ajax traffic is blocked in my app.

    Attach a Capx

    Any ajax call in the new phonegap build will fail.

    Description of Capx

    None included

    Steps to Reproduce Bug

    • Mke an ajax call

    Observed Result

    Ajax fails to trigger on fail or on success.

    Expected Result

    Ajax success or fail.

    Affected Browsers

    • Chrome:NO
    • FireFox: NO
    • Internet Explorer: NO

    Operating System and Service Pack

    Windows 10

    Construct 2 Version ID

    release 216 64 bit

    In order to fix it I needed to add the whitelist plugin by adding the following to my config.xml file. Can you look into including this by default?

    <gap:plugin name="cordova-plugin-whitelist" source="npm" />

    <plugin name="cordova-plugin-whitelist" spec="1" />

    <allow-navigation href="*" />

  • In the edittime you declared the js library as a dependany. That will load the js file into the application. So remove the items within the runtime that create the script tag. I think all that is what is messing you up. The expression you created returns a bunch of text. Not sure what pf.grid does but unless it returns a bunch of text, you might generate another error.

  • Thanks but I found a different solution. The canvas plugin allows you to snapshot just a part of th construct 2 canvas. So I loaded my images into a "holder" Sprite off th visible screen while keeping the original size of the image. I then center my canvas plugin object over the holder Sprite and take a snapshot of just the center portion. Finally I load the base64 string from the canvas into the "thumbnail" Sprite already perfectly centered and clipped. I lose some in this process but it avoids having empty space and squishing.

  • Hi everyone, I'm having a heck of a time finding a solution to this one. If I have a sprite that needs to always stay the same but I have images that might be different sizes than the sprite. How do I resize the image so that it decreases in size until it fits into the sprite?

  • Weird, I used my computer console to generate the authentication file for my apk. Your saying I can do this via Google as well? Are there any perks to using Google to create the key file?

  • I no longer sell the plugin. If you purchased a plugin and need support or if you wish to add facebook functionality to your app feel free to send me a message at

  • There wasn't a whole lot of interest in the plugins so I'm not actively selling them anymore. Getting the access toon is fairly easy by adjusting a few things in the official plugin. If you want Facebook plugins I have drop me a message on Facebook at Facebook.com/hikenh.

  • It is rather a pain to have to manually fix the config file. Hoping the next beta pushes a quick fix for this.

  • Problem Description

    Yesterday, build.phonegap.com update their version to 5.x. Now any uploaded zipfile to build.phonegap.com fails. A current workaround is

    So, what we did was to specifically force the phonegap version 3.7.0:

    <preference name="phonegap-version" value="3.7.0" />

    The error message on the build site says that you need to upgrade the inappbrowser.java file.

    Attach a Capx

    Any exported capx will do.

    Description of Capx

    Uploading any capx including a blank one seems to fail.

    Steps to Reproduce Bug

    • Export via cordova
    • zip the exported directory and upload to build.phonegap.com
    • Press the update/rebuild button.

    Observed Result

    The zipped file fails to translate into an apk file.

    Expected Result

    The zip file would translate into an apk file.

    Affected Browsers

      [YES] Chrome: (YES/NO) [YES] FireFox: (YES/NO) [YES] Internet Explorer: (YES/NO)

    Operating System and Service Pack

    Windows 10

    Construct 2 Version ID

    Release 214 (64 bit) checked

  • I dont use that plugin, i dont think. Im new to phonegap. I dont have a clue how to fix it.

  • Up until today I have been able to export via cordova and upload a zipped copy of my export directory into build.phonegap.com. From there I would upload and rebuild the app in order to get a new .apk file. Today it appears like they update their build.phonegap.com system to a new version now I can't rebuild anything that worked yesterday. I even removed all plugins related to phonegap and still have the issue. Is there a switch somewhere that I can reset the compiler on build.phonegap.com to the version it used yesterday or will I need to wait for Ashley and the team to push an update for Phonegap export?

    Here's the error. Maybe it'll make sense to someone else:

    Error - Some official plugins have to be updated if using PhoneGap >= 4.0.0. Please upgrade the version of any plugins that may include the following file: InAppBrowser.java - You can fix this here

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Short answer is you cannot embed Facebook via Construct 2 the way it is. You would need to have someone code the page plugin in order to add a facebook page to a Construct 2 app. Info for the developer can be found at https://developers.facebook.com/docs/pl ... ge-plugin/