Facebook Plugin outdated

0 favourites
  • 11 posts
From the Asset Store
Star Maze
$4.40 USD
60% off
Fully Construct 3 game with HTML5 and Facebook instant game files ready to use on Website and Facebook.
  • Problem Description

    Facebook plugin permissions are broken. so parts of Facebook plugin don't work when requesting certain permissions...

    Check Capx provided. I also provided a screenshot.

    (A similar error, but with different permissions listed. http://stackoverflow.com/questions/3009 ... cope-error)

    Attach a Capx

    Capx: https://drive.google.com/file/d/0BzWwtk ... sp=sharing

    Screenshot: https://drive.google.com/file/d/0BzWwtk ... sp=sharing

    Description of Capx

    Once the default facebook plugin loads, it triggers a log in request with the permission "Publish to stream"

    That's it, it then shows that error.

    Steps to Reproduce Bug

    • Request to log in with "publish to stream" permission.
    • Allow the page to show pop ups (At least I had to...)

    Observed Result

    You get a error. (Check the screenshot)

    Expected Result

    I expected it to login with those permissions so I could get them to share something.

    Construct 2 Version ID

    r215

    (Although version shouldn't matter... it's because the FB permissions aren't updated...)

    Thanks <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    Justin

  • Ashley can you take look at this issue?

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

  • I have a few questions:

    Say I publish a game with the correct permissions today.

    Facebook updates it's API, does it break my game? or only for new projects?

    Is there a way to use a string to ask for permission instead of the current method?

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

  • I currently have one of the 3rd party plugins installed... I did go and check, and it is available there... so I guess I'll use that.

    Thanks for explaining that Facebook update system...

  • I've updated the plugin in the next build to use a comma-separated list of permissions. This should allow you to stay up to date with Facebook API changes yourself, as well as adding any other permissions you might need. Hopefully this will resolve it and prevent it being an issue again.

  • My god this is FANTASTIC Ashley are you going to update the tutorial? because all the interfaces in the developers side of facebook has changed a lot.

  • imothep85 - I'll take a look, but it's already been updated a bunch of times, so I'd expect it would go out of date again soon enough...

  • Awesome Ashley, that's EPIC

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks Ashley, I have a question, this includes permission to capture the user's mail?

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