Why facebook sdk won't work with ejecta and cocoonJS?

0 favourites
From the Asset Store
[C2] [C3] NOT support C3 build service | support Banner ads, Interstitial ads, Rewared video ads.
  • if calimaborges plugin works we should probably look at merging into the official opensource plugin => https://github.com/ludei/Construct-2-plugin

    In fact it maybe worth contacting this guy to do himself since that is the polite thing to do. As I don't want the credit for something that this guy has worked hard to do himself.

  • I don't believe it does but I can tell him what needs to change then we can coax him into giving it to Tom and Ashley for the official plugin I couldn't find his contact info. Are you familiar with github and contacting users? TheWyrm also maybe you could test the plugin?

  • I have found his twitter and sent him a message but he hasnt been active for a while. We'll see what happens.

    I would be happy to test it and if you tell me what changes to make I would be happy to test those too.

  • Right now test it as it The way he grabs user information appears to be wrong.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok, just need to wait for my alpha test apk to be published through Google Play.

  • Yeah.. I can't get it working.

    I did everything I could think of doing.

    Added the facebook service to Ludei settings. Added the the android app as a platform. Added the app id to the plugin.

    Then did a simple test of touch a sprite which should trigger the fb login, but nothing. :/

  • TheWyrm do you know anything about the android facebook setup? My test plugin loads perfectly fine but it fails because the URL isn't allowed. Ios has a bundleid and android has something similar when adding your app to facebook. I don't have any idea what these are though because I've never had a use for a Mobile app. If we can just cross this last bridge on the whole URL or bundleid thing then I will have a working cocoonjs plugin for everyone. If someone can help with this last part I am more than happy explaining to them how to get the facebook api to load and give them a copy of my full facebook plugin.

  • Go to https://developers.facebook.com. Then go to Apps > Create a new app and enter anything you need to create the app. Then go to Settings > + Add Platform and choose one. I would start with Android as its easier to get an app up and running. Package Name will be something you setup for the app i.e. com.thewyrm.game. The Class Name will be the same as the package name from what I've found. The hashkey you'll need to extract from the keystore file you used to sign the APK with. I suspect you may struggle with the last part since you haven't done any mobile stuff before.

    Send a capx and the plugin to mat(AT)thewyrm.com and I'll do the mobile stuff.

  • 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

        applicationID: fbAppID,
        channelURL: 'channel.html'
    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

    I'm having the exact opposite problem. I can load the api but I can't seem to get facebook to recognize the URL. I heard something about using a bundleid instead of adding a domain? Is that making sense? Drop me a message or look me up on facebooke at facebook.com/hikenh. Maybe we can figure it out. I had to drop the ludei structure altogether in order to load the api. In order for it to load I have to create the facebook div, load the facebook sdk. I then have to add an on load event. The on load event will fire off the fb.api. All that works splendidly I'm just stuck on figuring out which domain to use or how to make this bundleid thing work in its place.

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

  • calimaborges Great to hear. My shot in the dark trying to contact you wasn't in vain. The main problem starting with the iOS platform is you kind of need an app already on the appstore before you get the bundleid AFAIK.

    Does that mean you don't want my assistance as I described above?

  • TheWyrm

    The more the merrier

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

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