How do I use facebook with crosswalk on android?

0 favourites
  • 14 posts
  • I've done hours of research and I can't seem to find a way to make the facebook plugin work when exported to my android device using crosswalk, help please!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • you can't use facebook with crosswalk since it has no "valid url". And you need to input the valid URL of your game on the facebook developer thing. So... yeah.

  • I try to works Facebook's plugin in mi Android. I use XDK for builds. When I build my contrct 2 export to Android (Only Android Option), all Works perfectly, but when I use Crosswalk Android option, the builds fails and says "pacackge com.facebook. do not exists",

    Someone konws where is the problem?

    I supose the best way to build is "crosswalk Android" tan "Android" because performance this is true?

  • Our Crosswalk build servers are in the process of being updated from Java 6 to Java 7. Java 7 is needed by a few plugins, like Facebook and Google Play Games Services.

  • Thx, then "package com.facebook not exists" when i build with Crosswalk is about versión of Java?.

  • you can try the plugin from cranberrygame here:

    http://shatter-box.com/downloads/phonegap-facebookpb/

  • If you are gonna build it in ""Crosswalk for Android" then follow as AndreasR said but if you are looking for just "Android" build in Intel XDK then follow this tutorial - https://www.scirra.com/tutorials/1319/h ... rys-plugin

  • Thx AndreasR & Harishankar, the "Android" build Worked perfect for me days ago, my problema is only with "Crosswalk for Android" build.

    I use the cranberrygame plugin but the build fails.

    There are some lines of the Build Log.

    [javac] Compiling 8 source files to .../ColoredWords/bin/classes

    [javac] .../ColoredWords/src/org/apache/cordova/facebook/ConnectPlugin.java:28: error: package com.facebook does not exist

    [javac] import com.facebook.AppEventsLogger;

    [javac] ^

    [javac] .../ColoredWords/src/org/apache/cordova/facebook/ConnectPlugin.java:29: error: package com.facebook does not exist

    [javac] import com.facebook.FacebookDialogException;

    [javac] ^

    [javac] .../ColoredWords/src/org/apache/cordova/facebook/ConnectPlugin.java:30: error: package com.facebook does not exist

    [javac] import com.facebook.FacebookException;

  • Our Crosswalk build servers are in the process of being updated from Java 6 to Java 7. Java 7 is needed by a few plugins, like Facebook and Google Play Games Services.

    imaffett Do you know when will the servers be updated? When will those plugins work?

  • At last!!!, In the http://shatter-box.com/downloads/phonegap-facebookpb/ there are two plugins,

    cranberrygame_PhonegapFacebook_2.0.4

    cranberrygame_PhonegapFacebookPB_1.0.31

    The first shows error before commented.

    The second Works perfectly with "Crosswalk for Android" build, thx a lot.

  • grigrizljac - I do not know an exact date. Most people are off until the first week in January.

  • imaffett Ok, but just approximately, in which month or so?

  • At last!!!, In the http://shatter-box.com/downloads/phonegap-facebookpb/ there are two plugins,

    cranberrygame_PhonegapFacebook_2.0.4

    cranberrygame_PhonegapFacebookPB_1.0.31

    The first shows error before commented.

    The second Works perfectly with "Crosswalk for Android" build, thx a lot.

    Yes we have updated the 'Phonegap Facebook' item with the latest version from Use the Version '2' from now on. But don't overwrite the old plugin (PhonegapFacebookPB)! Then you aren't able to re open your old projects. Create a new folder at '/Construct2/exporters/HTML5/plugins/' instead and change your Facebook events and actions to the new plugin!

    If you have questions let me know. And if needed I'll upadet the tutorial for Version 2.

  • AndreasR

    Could you help me out with this. I downloaded the PhonegapFacebook_2.0.4. I loaded up the example file, put in my app id and app name into the plug in. I exported using Cordova and loaded into IntelXDK using Import Existing Html files. I swapped out the code for this

    <intelxdk:plugin intelxdk:name="https://github.com/Wizcorp/phonegap-facebook-plugin#d8b0f6935a7c6e586188bf85f9da88a1c160790b" intelxdk:value="https://github.com/Wizcorp/phonegap-facebook-plugin#d8b0f6935a7c6e586188bf85f9da88a1c160790b" >

    <intelxdk:param intelxdk:name='APP_ID' intelxdk:value='YOUR_FACEBOOK_APP_ID' />

    <intelxdk:param intelxdk:name='APP_NAME' intelxdk:value='YOUR_FACEBOOK_APP_NAME' />

    </intelxdk:plugin>

    I put in my app ID and name. But I keep getting build failed. On the build log it says the plug in was installed. But when I check the full log theres multiple erros that say com.facebook do not exist. I have no idea why I'mm getting this error. Im using Crosswalk for Android on export.

    If i use the PhonegapFacebookPB plugin with the example file the build works correctly. The only thing is I can't stand the Check Failure error any time you preview or export in Construct.

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