calimaborges's Recent Forum Activity

  • Nameo, thank you!

    Well, it doesn't seem hard. I will give it a try =)

    I just created a issue in the GitHub repo (https://github.com/calimaborges/constru ... n/issues/8). You are welcome to watch it if you want.

    I will reply here when it is done anyway.

  • Ok... Pushed with the same features that worked before, which means:

    On Facebook ready: it is implemented using setTimeout for now to maintain compatibility (very bad, I know). This trigger will disappear in the future.

    Is logged in to Facebook: OK

    Request login: OK

    On Facebook login succeeded: OK

    On Facebook login failed: OK

    Request logout: OK

    On Facebook logout: OK

    Request user score: OK

    On score received: OK

    Submit score of int(n): OK

    On score submit success: OK

    Request Facebook scoreboard: OK

    On score info arrived: OK

    Projects that used to work with the extension still work without any changes. I will take a little break now, and will fork Ludei's Construct-2 GitHub and try to integrate what I did there.

    Again, any suggestions or questions, please talk to me.

    Thank you. Hope it helps.

  • Just made a push to github (https://github.com/calimaborges/constru ... ded-plugin)

    It is not ready yet. Here is a status list of what should and shouldn't work:

    On Facebook ready: it is implemented using setTimeout for now to maintain compatibility (very bad, I know). This trigger will disappear in the future.

    Is logged in to Facebook: OK

    Request login: OK

    On Facebook login succeeded: OK

    On Facebook login failed: OK (but prints error on console. I will investigate why.)

    Request logout: OK

    On Facebook logout: OK

    -----

    Request user score: Not implemented yet

    On score received: Not implemented yet

    Submit score of int(n): Not implemented yet

    On score submit success: Not implemented yet

    Request Facebook scoreboard: Not implemented yet

    On score info arrived: Not implemented yet

    I plan to complete most of the not implemented features tomorrow.

    I created readme.md file with some very basic instructions.

    I also added a capx example file. You should be able to open it fill the App ID, export it to Cocoon and test it into a Custom CocoonJS Launcher with Ludei's compile properties and Facebook properly configured for it.

    If you have any trouble testing it or if you have any suggestions please talk to me.

    Thank you.

  • Thank you! =)

    It is not ready yet. I plan to work on it tonight. If nothing creepy happens I will probably have most features working by tomorrow morning.

  • , even with this modification it kept not working.

    Good news though, I managed to login and get the session object. I believe the real problem was the migration from CocoonJS 1.4* to 2.*. Somethings changed when dealing with Cocoon's native calls to Facebook . Some more hours of coding and I will have it working.

    If you are curious of what I have done until now, here it is: https://gist.github.com/calimaborges/97 ... 5718223968

    It is just a login test though...

    The CocoonJS.Social.FacebookEvent and CocoonJS.Social.FacebookExtension classes were copied from: https://bitbucket.org/ludei/cocoon_coco ... acebook.js

    Although, I won't use this wrappers anymore, since they actually consider that CocoonJS might not be available. Instead I will just make the native calls, like:

     
    CocoonJS.makeNativeExtensionObjectFunctionCall(this.nativeExtensionName, "init", [options], true); // Line 55 of gist
    [/code:l5mrb32z]
    By doing this I will give Construct 2's user the responsibility to check if CocoonJS is enabled. If it is than use my plugin, else use Construct 2's native Facebook extension.
  • Well still nothing. Did those changes but the error remains.

    I have an idea though. In the past I had to embed CocoonJS_Social_Facebook.js inside my runtime.js in order for it to work (I believe it wasn't being included if I didn't do that). But now, I noticed it is really outdated. So, I will try to embed the new version (https://bitbucket.org/ludei/cocoon_coco ... s?at=2.0.2), do the necessary adjustments and see how it goes.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • TheWyrm it is an honor to have my plugin considered I think I remember testing it without configuring it at App Store (didn't have to publish it, for sure)...

    I believe it would suffice use the compiled CocoonJS Launcher as long as its Bundle ID is the same as the one set in Facebook App Configuration.

  • I remember adding a iOS platform and filling a bundle id at Facebook App configuration . I think I had to use the Customized CocoonJS Launcher App to test it. I am not sure if it is required though.

    I am at work right now, so I don't have Construct 2 installed and Facebook is blocked by proxy. I will probably be of more assistance in about 5 hours when I arrive at home. =)

  • Hello! Just saw TheWyrm 's tweet.

    The plugin used to work... Stopped working after CocoonJS 2.0 if I am not mistaken. Facebook couldn't initialize anymore. Probably something wrong in https://github.com/calimaborges/constru ... e.js#L1067

     this.socialService["requestInitialization"]({
        applicationID: fbAppID,
        channelURL: 'channel.html'
    });
    [/code:12htkiof]
    
    I tried to debug it for sometime, but I ended giving up. I haven't tried to mess with it for sometime now but I would be glad to help. I can start debugging it again to see if I can get more details about what is wrong.
calimaborges's avatar

calimaborges

Member since 16 Feb, 2014

None one is following calimaborges yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies