Facebook For CocoonJS

0 favourites
  • 8 posts
From the Asset Store
Star Maze
$11 USD
Fully Construct 3 game with HTML5 and Facebook instant game files ready to use on Website and Facebook.
  • Ok im sure you guys got excited by the title but its not there yet...

    I see some people have given this some thought but nobody has really tried to implement it im sure everyone's been wanting it from what i see and the webview that cocoonJS allowes it shouldnt be to hard what im going to do is take scirras facebook plugin and transform it to work with webvies in cocoonJS i have a pretty good plan so far. Please i would appretiate some input and suggestions from anyone that has any idea what i talking about

    steps im going to take

    1.send out a call to the exterior webview page so that instead of this thats in the facebook plugin

    Acts.prototype.PromptWallPost = function ()

         {

              if (this.runtime.isDomFree || !fbLoggedIn)

                  ?return;

                  ?

              FB.ui({ "method": "feed" }, function(response) {

                        if (!response || response.error)

                               console.error(response);

                  ?});

         };

    to put

    Acts.prototype.PromptWallPost = function ()

         {

              if ( window['c2cocoonjs'] || !fbLoggedIn)

              {

                  ?

    CocoonJS['App']['forwardAsync']( "PromptTheWallPost( )");

         return;

         };

    and in the webview folder put

    this function

    PromptTheWallPost( ){

    FB.ui({ "method": "feed" }, function(response) {

                        if (!response || response.error)

                               console.error(response);

                  ?});

    }

    Now im still in the planning stages of how im going to tackle this plugin (in my opinion the most important one construct2 comes with)so we can have the best features of html5 within our cocoonJS app which means leader boards achievements and whatever facebook feature the app offers through the web will work with (cocoonJS)android apple and our facebook apps will all be in sync!!

    I cant help but feeling i might be missing a step or two please let me know guys N gals any input would be awesome and if anyone is down to tackle this project with me?

  • I understand cocoons big flaw is currently the lack of Ajax calls? You can use a browser redirect to implement the majority of Facebook integration. I had previously set up my game that way so I know it works great. Although its a real hassle.

  • ** The latest Beta version of Construct2 has fixed this problem ! **

    Hi Lanceal,

    Do you have an example of the browser redirect working in Cocoonjs?

    It just crashes to black screen for me.

    Thanks

    Danny

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • danny are you taling about the ajax calls or the facebook plugin

  • Hi, I was just looking for opening a webpage in a new browser window ( is working after update to latest Beta of C2 )

    What I really need is an example of how I can grab a variable from a webpage ( xml or php or whatever really ) - compiling in Cocoonjs.

  • Hi guys, i'm really interested in this. Any updates?

  • can anyone help with this providing .capx file and tutorial to configure facebook using coconjs for android?

  • Search the forums. There is a working plugin now hosted on github.

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