[RESOLVED] Facebook supported on starter edition?

I am currently attempting to get the Facebook Connect application running on a Nexus 7 using Corona Starter.

I’ve set up the Facebook Native Android App with appropriate values and entered the hash from the debug key.

The App compiles fine but when run on the device shows “Not connected”. Clicking any button does nothing and generates no error.

Looking at the logcat output, I can see the app start but no sign of any Facebook connectivity.

Am I missing something or is it simply that Facebook SSO is not available in the starter edition?

Many thanks for any help,

Ian.

Facebook should work with the starter edition.   Do you have the necessary permissions set in your build.settings?

        android =         {                 usesPermissions =                 {                         "android.permission.INTERNET",                 },         }

??

I had added the Internet permissions to build.settings. The entire changes I have made are:

  1. Setup Facebook Developer account, created new App. Configured the Native Android section as follows:
  • Package Name: a.b.c.d (same as when building app)
  • Class name: com.ansca.corona.CoronaActivity
  • Key Hash: JGn9F2vDQ/w6hexLxdefCUpxYIA= (built using the developer key)
  • Facebook Login: Enabled
  • Deep Linking: Enabled
  1. Entered appId into line 267 of the Facebook connect demo app.
  2. App Secret not entered anywhere - I believe this is correct

After building and installing on my Nexus 7 which has Internet conenctivity and the latest version of the Facebook App installed, the app runs but shows only “Not connected”.

Pressing any of the buttons highlights them to indicate they have been touched but does not perform any action, error or otherwise.

Viewing the LogCat file does not appear to show any connectivity attempts to Facebook as shown below.

Any help anyone can give would be much appreciated as I’m tearing what little hair I have left out on this one!

I/ActivityManager( &nbsp;443): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 &nbsp;cmp=a.b.c.d/com.ansca.corona.CoronaActivity} from pid 836 D/dalvikvm( &nbsp;443): GC\_FOR\_ALLOC freed 1077K, 27% free 23631K/32092K, paused 87ms, total 88ms D/dalvikvm(21443): Late-enabling CheckJNI I/ActivityManager( &nbsp;443): Start proc a.b.c.d for activity a.b.c.d/com.ansca.corona.CoronaActivity: pid=21443 uid=10120 gids={50120, 3003, 1028} D/dalvikvm( &nbsp;126): GC\_EXPLICIT freed 40K, 3% free 7315K/7532K, paused 1ms+2ms, total 40ms D/dalvikvm( &nbsp;126): GC\_EXPLICIT freed \<1K, 3% free 7315K/7532K, paused 1ms+4ms, total 41ms D/dalvikvm( &nbsp;126): GC\_EXPLICIT freed \<1K, 3% free 7315K/7532K, paused 1ms+2ms, total 36ms D/dalvikvm(21443): Trying to load lib /data/app-lib/a.b.c.d-1/liblua.so 0x4234a708 D/dalvikvm(21443): Added shared lib /data/app-lib/a.b.c.d-1/liblua.so 0x4234a708 D/dalvikvm(21443): No JNI\_OnLoad found in /data/app-lib/a.b.c.d-1/liblua.so 0x4234a708, skipping init D/dalvikvm(21443): Trying to load lib /data/app-lib/a.b.c.d-1/libjnlua5.1.so 0x4234a708 D/dalvikvm(21443): Added shared lib /data/app-lib/a.b.c.d-1/libjnlua5.1.so 0x4234a708 D/dalvikvm(21443): Trying to load lib /data/app-lib/a.b.c.d-1/libjnlua5.1.so 0x4234a708 D/dalvikvm(21443): Shared lib '/data/app-lib/a.b.c.d-1/libjnlua5.1.so' already loaded in same CL 0x4234a708 I/dalvikvm(21443): threadid=1: recursive native library load attempt (/data/app-lib/a.b.c.d-1/libjnlua5.1.so) D/dalvikvm(21443): Trying to load lib /data/app-lib/a.b.c.d-1/libopenal.so 0x4234a708 I/OpenAL\_SLES(21443): alc\_opensles\_init D/dalvikvm(21443): Added shared lib /data/app-lib/a.b.c.d-1/libopenal.so 0x4234a708 D/dalvikvm(21443): Trying to load lib /data/app-lib/a.b.c.d-1/libmpg123.so 0x4234a708 D/dalvikvm(21443): Added shared lib /data/app-lib/a.b.c.d-1/libmpg123.so 0x4234a708 D/dalvikvm(21443): No JNI\_OnLoad found in /data/app-lib/a.b.c.d-1/libmpg123.so 0x4234a708, skipping init D/dalvikvm(21443): Trying to load lib /data/app-lib/a.b.c.d-1/libvorbisidec.so 0x4234a708 D/dalvikvm(21443): Added shared lib /data/app-lib/a.b.c.d-1/libvorbisidec.so 0x4234a708 D/dalvikvm(21443): No JNI\_OnLoad found in /data/app-lib/a.b.c.d-1/libvorbisidec.so 0x4234a708, skipping init D/dalvikvm(21443): Trying to load lib /data/app-lib/a.b.c.d-1/libalmixer.so 0x4234a708 D/dalvikvm(21443): Added shared lib /data/app-lib/a.b.c.d-1/libalmixer.so 0x4234a708 D/dalvikvm(21443): No JNI\_OnLoad found in /data/app-lib/a.b.c.d-1/libalmixer.so 0x4234a708, skipping init D/dalvikvm(21443): Trying to load lib /data/app-lib/a.b.c.d-1/libcorona.so 0x4234a708 D/dalvikvm(21443): Added shared lib /data/app-lib/a.b.c.d-1/libcorona.so 0x4234a708 D/libEGL &nbsp;(21443): loaded /system/lib/egl/libEGL\_tegra.so D/libEGL &nbsp;(21443): loaded /system/lib/egl/libGLESv1\_CM\_tegra.so D/libEGL &nbsp;(21443): loaded /system/lib/egl/libGLESv2\_tegra.so D/OpenGLRenderer(21443): Enabling debug mode 0 D/dalvikvm(21443): Note: class Landroid/opengl/GLWrapperBase; has 250 unimplemented (abstract) methods V/GLSurfaceView(21443): glGetString(7937) returns NVIDIA AP; I/ActivityManager( &nbsp;443): Displayed a.b.c.d/com.ansca.corona.CoronaActivity: +721ms V/Corona &nbsp;(21443): \> Class.forName: network.LuaLoader V/Corona &nbsp;(21443): \< Class.forName: network.LuaLoader V/Corona &nbsp;(21443): Loading via reflection: network.LuaLoader D/dalvikvm(21443): GC\_CONCURRENT freed 294K, 6% free 7507K/7980K, paused 14ms+9ms, total 56ms D/dalvikvm(21443): WAIT\_FOR\_CONCURRENT\_GC blocked 7ms V/Corona &nbsp;(21443): \> Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona &nbsp;(21443): \< Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona &nbsp;(21443): Loading via reflection: CoronaProvider.licensing.google.LuaLoader &nbsp;

Have you tried it with the Facebook sample app?

It’s always something stupid - I’d entered the appID as an integer and not a string… Corrected this and all working perfectly!

Facebook should work with the starter edition.   Do you have the necessary permissions set in your build.settings?

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; android = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; usesPermissions = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "android.permission.INTERNET", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }

??

I had added the Internet permissions to build.settings. The entire changes I have made are:

  1. Setup Facebook Developer account, created new App. Configured the Native Android section as follows:
  • Package Name: a.b.c.d (same as when building app)
  • Class name: com.ansca.corona.CoronaActivity
  • Key Hash: JGn9F2vDQ/w6hexLxdefCUpxYIA= (built using the developer key)
  • Facebook Login: Enabled
  • Deep Linking: Enabled
  1. Entered appId into line 267 of the Facebook connect demo app.
  2. App Secret not entered anywhere - I believe this is correct

After building and installing on my Nexus 7 which has Internet conenctivity and the latest version of the Facebook App installed, the app runs but shows only “Not connected”.

Pressing any of the buttons highlights them to indicate they have been touched but does not perform any action, error or otherwise.

Viewing the LogCat file does not appear to show any connectivity attempts to Facebook as shown below.

Any help anyone can give would be much appreciated as I’m tearing what little hair I have left out on this one!

I/ActivityManager( &nbsp;443): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 &nbsp;cmp=a.b.c.d/com.ansca.corona.CoronaActivity} from pid 836 D/dalvikvm( &nbsp;443): GC\_FOR\_ALLOC freed 1077K, 27% free 23631K/32092K, paused 87ms, total 88ms D/dalvikvm(21443): Late-enabling CheckJNI I/ActivityManager( &nbsp;443): Start proc a.b.c.d for activity a.b.c.d/com.ansca.corona.CoronaActivity: pid=21443 uid=10120 gids={50120, 3003, 1028} D/dalvikvm( &nbsp;126): GC\_EXPLICIT freed 40K, 3% free 7315K/7532K, paused 1ms+2ms, total 40ms D/dalvikvm( &nbsp;126): GC\_EXPLICIT freed \<1K, 3% free 7315K/7532K, paused 1ms+4ms, total 41ms D/dalvikvm( &nbsp;126): GC\_EXPLICIT freed \<1K, 3% free 7315K/7532K, paused 1ms+2ms, total 36ms D/dalvikvm(21443): Trying to load lib /data/app-lib/a.b.c.d-1/liblua.so 0x4234a708 D/dalvikvm(21443): Added shared lib /data/app-lib/a.b.c.d-1/liblua.so 0x4234a708 D/dalvikvm(21443): No JNI\_OnLoad found in /data/app-lib/a.b.c.d-1/liblua.so 0x4234a708, skipping init D/dalvikvm(21443): Trying to load lib /data/app-lib/a.b.c.d-1/libjnlua5.1.so 0x4234a708 D/dalvikvm(21443): Added shared lib /data/app-lib/a.b.c.d-1/libjnlua5.1.so 0x4234a708 D/dalvikvm(21443): Trying to load lib /data/app-lib/a.b.c.d-1/libjnlua5.1.so 0x4234a708 D/dalvikvm(21443): Shared lib '/data/app-lib/a.b.c.d-1/libjnlua5.1.so' already loaded in same CL 0x4234a708 I/dalvikvm(21443): threadid=1: recursive native library load attempt (/data/app-lib/a.b.c.d-1/libjnlua5.1.so) D/dalvikvm(21443): Trying to load lib /data/app-lib/a.b.c.d-1/libopenal.so 0x4234a708 I/OpenAL\_SLES(21443): alc\_opensles\_init D/dalvikvm(21443): Added shared lib /data/app-lib/a.b.c.d-1/libopenal.so 0x4234a708 D/dalvikvm(21443): Trying to load lib /data/app-lib/a.b.c.d-1/libmpg123.so 0x4234a708 D/dalvikvm(21443): Added shared lib /data/app-lib/a.b.c.d-1/libmpg123.so 0x4234a708 D/dalvikvm(21443): No JNI\_OnLoad found in /data/app-lib/a.b.c.d-1/libmpg123.so 0x4234a708, skipping init D/dalvikvm(21443): Trying to load lib /data/app-lib/a.b.c.d-1/libvorbisidec.so 0x4234a708 D/dalvikvm(21443): Added shared lib /data/app-lib/a.b.c.d-1/libvorbisidec.so 0x4234a708 D/dalvikvm(21443): No JNI\_OnLoad found in /data/app-lib/a.b.c.d-1/libvorbisidec.so 0x4234a708, skipping init D/dalvikvm(21443): Trying to load lib /data/app-lib/a.b.c.d-1/libalmixer.so 0x4234a708 D/dalvikvm(21443): Added shared lib /data/app-lib/a.b.c.d-1/libalmixer.so 0x4234a708 D/dalvikvm(21443): No JNI\_OnLoad found in /data/app-lib/a.b.c.d-1/libalmixer.so 0x4234a708, skipping init D/dalvikvm(21443): Trying to load lib /data/app-lib/a.b.c.d-1/libcorona.so 0x4234a708 D/dalvikvm(21443): Added shared lib /data/app-lib/a.b.c.d-1/libcorona.so 0x4234a708 D/libEGL &nbsp;(21443): loaded /system/lib/egl/libEGL\_tegra.so D/libEGL &nbsp;(21443): loaded /system/lib/egl/libGLESv1\_CM\_tegra.so D/libEGL &nbsp;(21443): loaded /system/lib/egl/libGLESv2\_tegra.so D/OpenGLRenderer(21443): Enabling debug mode 0 D/dalvikvm(21443): Note: class Landroid/opengl/GLWrapperBase; has 250 unimplemented (abstract) methods V/GLSurfaceView(21443): glGetString(7937) returns NVIDIA AP; I/ActivityManager( &nbsp;443): Displayed a.b.c.d/com.ansca.corona.CoronaActivity: +721ms V/Corona &nbsp;(21443): \> Class.forName: network.LuaLoader V/Corona &nbsp;(21443): \< Class.forName: network.LuaLoader V/Corona &nbsp;(21443): Loading via reflection: network.LuaLoader D/dalvikvm(21443): GC\_CONCURRENT freed 294K, 6% free 7507K/7980K, paused 14ms+9ms, total 56ms D/dalvikvm(21443): WAIT\_FOR\_CONCURRENT\_GC blocked 7ms V/Corona &nbsp;(21443): \> Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona &nbsp;(21443): \< Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona &nbsp;(21443): Loading via reflection: CoronaProvider.licensing.google.LuaLoader &nbsp;

Have you tried it with the Facebook sample app?

It’s always something stupid - I’d entered the appID as an integer and not a string… Corrected this and all working perfectly!