Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Facebook Android Plugin - Page 4 — Gideros Forum

Facebook Android Plugin

124

Comments

  • @krl3000 where did you see the different file versions?
    usually "libsomething.so" is just a file name, while the actual library you are referring is called "something"
  • The Facebook and Flurry libs are missing from the OS X install.

    v2013.09.1 on OS X is missing:

    Gideros Studio/All Plugins/Facebook/bin/Android/armeabi/libfacebook.so
    Gideros Studio/All Plugins/Facebook/bin/Android/armeabi-v7a/libfacebook.so
    Gideros Studio/All Plugins/Flurry/bin/Android/armeabi/libflurry.so
    Gideros Studio/All Plugins/Flurry/bin/Android/armeabi-v7a/libflurry.so
  • Wow, true. So sorry for that, will check the build script
  • hi guys,

    i've tried to make gideros player with latest facebook SDK (3.6), but when I put @ar2rsawseen's template, the player crash. I followed the step-by-step, and I even build the player on each step. It crashes in putting the code System.loadLibrary("facebook");

    could you help me with that?

    here's my code
  • @gearball hello ;)
    do you use Facebook Plugin provided in the Gideros or the new one from Gideros Labs?
    Because you may be using old .so files with new Gideros, thus resulting in the error.

  • i think i'm using the one in this forum link (the first post of this thread). where's the link for the newer one? ( I can't seem to find any in gideros labs)
  • Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • um... i don't see links for the new .so file...
  • oh got it. my mistake :-p
    I'll try them out :-)
  • Any success case with new Facebook plugins?

    Surprise to see it is in Experiment state, because it used to work in my previous game (with previous Gideros version and facebook plugin) but now it's crashed.
  • @thanhquan1512 it is for new FB SDK and had to be redone from 0, thus in experiment state
  • I'm using Android Studio 0.3.0
    No errors shown in the project. But when I rebuild it, I have this error:

    java: cannot find symbol
    symbol: class R
    location: package com.facebook.android
  • Most probably you need to build Facebook SDK and then your project (to generate resources), before running it.
  • Can someone help me with this part? is it necessary?

    - Copy .so files to each separate armeabi folder.

    I didn't find a single .so file :(.
  • For android there should be libs folder in your downloaded plugin, like

    https://github.com/gideros/giderosplugins/tree/master/Facebook/source/Android

    inside which you would see different platform directories and .so files in them
  • somezombiegmsomezombiegm Member
    edited January 2015
    @ar2rsawseen Found them, thanks!
  • somezombiegmsomezombiegm Member
    edited January 2015
    About the next line:

    - Copy facebook folder to src/giderosmobile/android/plugins folder

    I don't see a "facebook" folder so I'm copying the "facebookSDK" one. And I have a slightly different path: src/com/giderosmobile/android/plugins. Is that correct? because almost all of the imported java files appear with errors.

    Edit: Sorry for the noob questions. I ended up using the facebook folder that's inside FacebookPlugin/src/com/giderosmobile/android/plugins.
  • No, import the facebook sdk into eclipse - unselect all the examples - you just want the libs bit.

    Then, on your project, right click it and select the properties, in the android section you will see library, click add and select Facebook.
    facebook_android.png
    801 x 555 - 34K
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • The Facebook and Flurry libs are missing from the OS X install.

    v2013.09.1 on OS X is missing:

    Gideros Studio/All Plugins/Facebook/bin/Android/armeabi/libfacebook.so
    Gideros Studio/All Plugins/Facebook/bin/Android/armeabi-v7a/libfacebook.so
    Gideros Studio/All Plugins/Flurry/bin/Android/armeabi/libflurry.so
    Gideros Studio/All Plugins/Flurry/bin/Android/armeabi-v7a/libflurry.so
    Could it be that things are broken again? I've 2014.01 installed and the Flurry/bin folder is empty.
  • Ok. I installed 2014.10 which contains the missing files.
  • I install Facebook plugin in my game and I get this



    D:\Function Software Gaming\Under Development\Extracted For Android Studio\Function Software Player\app\src\main\java\com\giderosmobile\android\plugins\facebook\fbsimple\SimpleFacebook.java
    Error:(12, 20) error: cannot find symbol class Session
    Error:(13, 20) error: cannot find symbol class SessionState
    Error:(474, 56) error: package Session does not exist
    Error:(347, 16) error: cannot find symbol class Session
    Error:(399, 27) error: cannot find symbol class Session
    Error:(483, 20) error: cannot find symbol class Session
    Error:(483, 37) error: cannot find symbol class SessionState
    Error:(118, 4) error: cannot find symbol class Session
    Error:(118, 22) error: cannot find symbol variable Session
    Error:(121, 26) error: package Session does not exist
    Error:(124, 5) error: cannot find symbol variable Session
    Error:(154, 4) error: cannot find symbol class Session
    Error:(154, 22) error: cannot find symbol variable Session
    Error:(267, 7) error: cannot find symbol variable Session
    Error:(269, 11) error: cannot find symbol variable Session
    Error:(284, 3) error: cannot find symbol class Session
    Error:(284, 21) error: cannot find symbol variable Session
    Error:(293, 25) error: package Session does not exist
    Error:(296, 4) error: cannot find symbol variable Session
    Error:(307, 33) error: cannot find symbol variable SessionState
    Error:(334, 3) error: cannot find symbol class Session
    Error:(349, 10) error: cannot find symbol variable Session
    Error:(401, 10) error: package Session does not exist
    Error:(401, 44) error: package Session does not exist
    Error:(441, 3) error: cannot find symbol class Session
    Error:(441, 21) error: cannot find symbol variable Session
    Error:(442, 52) error: cannot find symbol variable SessionState
    Error:(464, 3) error: cannot find symbol class Session
    Error:(464, 21) error: cannot find symbol variable Session
    Error:(466, 10) error: package Session does not exist
    Error:(466, 54) error: package Session does not exist
    Error:(524, 9) error: cannot find symbol variable CLOSED
    Error:(531, 9) error: cannot find symbol variable CLOSED_LOGIN_FAILED
    Error:(534, 9) error: cannot find symbol variable CREATED
    Error:(537, 9) error: cannot find symbol variable CREATED_TOKEN_LOADED
    Error:(540, 9) error: cannot find symbol variable OPENING
    Error:(547, 9) error: cannot find symbol variable OPENED
    Error:(562, 66) error: cannot find symbol variable SessionState
    Error:(590, 9) error: cannot find symbol variable OPENED_TOKEN_UPDATED
    Error:(482, 3) error: method does not override or implement a method from a supertype
    D:\Function Software Gaming\Under Development\Extracted For Android Studio\Function Software Player\app\src\main\java\com\giderosmobile\android\plugins\facebook\fbsimple\SimpleFacebookConfiguration.java
    Error:(6, 20) error: cannot find symbol class SessionDefaultAudience
    Error:(7, 20) error: cannot find symbol class SessionLoginBehavior
    Error:(15, 10) error: cannot find symbol class SessionDefaultAudience
    Error:(16, 10) error: cannot find symbol class SessionLoginBehavior
    Error:(89, 2) error: cannot find symbol class SessionLoginBehavior
    Error:(99, 2) error: cannot find symbol class SessionDefaultAudience
    Error:(110, 11) error: cannot find symbol class SessionDefaultAudience
    Error:(111, 11) error: cannot find symbol class SessionLoginBehavior
    Error:(171, 37) error: cannot find symbol class SessionDefaultAudience
    Error:(181, 35) error: cannot find symbol class SessionLoginBehavior
    Error:(110, 53) error: cannot find symbol variable SessionDefaultAudience
    Error:(111, 49) error: cannot find symbol variable SessionLoginBehavior
    Error:(153, 10) error: cannot find symbol variable READ
    Error:(156, 10) error: cannot find symbol variable PUBLISH
    D:\Function Software Gaming\Under Development\Extracted For Android Studio\Function Software Player\app\src\main\java\com\giderosmobile\android\plugins\facebook\GFacebook.java
    Error:(11, 20) error: cannot find symbol class AppLinkData
    Error:(16, 20) error: cannot find symbol class Request
    Error:(17, 20) error: cannot find symbol class RequestAsyncTask
    Error:(18, 20) error: cannot find symbol class Response
    Error:(19, 20) error: cannot find symbol class Session
    Error:(20, 26) error: package com.facebook.model does not exist
    Error:(21, 27) error: package com.facebook.widget does not exist
    Error:(22, 37) error: package com.facebook.widget.WebDialog does not exist
    Error:(389, 41) error: package Request does not exist
    Error:(395, 29) error: cannot find symbol class Response
    Error:(412, 36) error: cannot find symbol class OnCompleteListener
    Error:(71, 3) error: cannot find symbol class AppLinkData
    Error:(71, 29) error: cannot find symbol variable AppLinkData
    Error:(119, 6) error: cannot find symbol variable Session
    Error:(120, 11) error: cannot find symbol variable Session
    Error:(125, 6) error: cannot find symbol variable Session
    Error:(126, 17) error: cannot find symbol variable Session
    Error:(141, 7) error: cannot find symbol class WebDialog
    Error:(142, 26) error: package WebDialog does not exist
    Error:(143, 17) error: cannot find symbol variable Session
    Error:(230, 11) error: cannot find symbol variable Session
    Error:(242, 8) error: cannot find symbol variable Session
    Error:(279, 3) error: cannot find symbol class Session
    Error:(280, 3) error: cannot find symbol class Request
    Error:(280, 25) error: cannot find symbol class Request
    Error:(281, 3) error: cannot find symbol class RequestAsyncTask
    Error:(281, 31) error: cannot find symbol class RequestAsyncTask
    Error:(286, 3) error: cannot find symbol class Session
    Error:(288, 3) error: cannot find symbol class Request
    Error:(290, 14) error: cannot find symbol variable Request
    Error:(291, 4) error: cannot find symbol class RequestAsyncTask
    Error:(291, 32) error: cannot find symbol class RequestAsyncTask
    Error:(356, 3) error: cannot find symbol variable Session
    Error:(397, 6) error: cannot find symbol class GraphObject
    Error:(418, 2) error: method does not override or implement a method from a supertype
    D:\Function Software Gaming\Under Development\Extracted For Android Studio\Function Software Player\app\src\main\java\com\giderosmobile\android\plugins\facebook\fbsimple\Permissions.java
    Error:(3, 29) error: cannot find symbol class SessionAuthorizationType
    Error:(110, 10) error: cannot find symbol class SessionAuthorizationType
    Error:(112, 36) error: cannot find symbol class SessionAuthorizationType
    Error:(123, 9) error: cannot find symbol class SessionAuthorizationType
    Error:(105, 16) error: cannot find symbol class SessionAuthorizationType
    Error:(106, 16) error: cannot find symbol class SessionAuthorizationType
    Error:(106, 48) error: cannot find symbol variable SessionAuthorizationType
    Error:(105, 51) error: cannot find symbol variable SessionAuthorizationType
    Note: D:\Function Software Gaming\Under Development\Extracted For Android Studio\Function Software Player\app\src\main\java\com\giderosmobile\android\plugins\ads\frameworks\AdsAdmob.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    Error:Execution failed for task ':app:compileDebugJava'.
    > Compilation failed; see the compiler error output for details.
    Information:BUILD FAILED
    Information:Total time: 2.041 secs
    Information:98 errors
    Information:0 warnings
    Information:See complete output in console

    Any thoughts on what I am doing wrong?
    Thanks
  • ar2rsawseenar2rsawseen Maintainer
    @dreiko65 you need to link your project to Facebook SDK project, unfortunately don't know how to do that in Android Studio specifically
  • @ ar2rsawseen Thanks will google it then.
  • @dreiko65 Did you find the answer to this? I'm just starting out with the FB plugin, so I am trying to gather as much information as possible.
  • @simwhi Yes, Do you use Eclipse or Android Studio?
  • @dreiko65 I'm using Android Studio.
  • I'm not having much luck at the moment getting facebook working in Android Studio. The app builds and is installed but crashes on require "facebook". I'm obviously missing something, or the instructions are out of date, or both!!

    I'd like to clarify a few points so I can write a de facto step by step installation guide for everyone as a first step. Here are my questions and comments:

    1) Which version of the facebook SDK is supported by the plugin? Is it the SDK that is included in the Gideros download?
    2) I followed the instructions on https://developers.facebook.com/docs/android/getting-started but they use maven as the repository for the SDK.
    3) What code and manifest changes are needed?
    a) Do I need to add this?

    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    FacebookSdk.sdkInitialize(getApplicationContext());
    // Initialize the SDK before executing any other operations,
    // especially, if you're using Facebook UI elements.
    }

    b) Which activity is required?



    or



    4) The other instructions are straightforward as with any other plugin installtion:

    a) Copy .so files to each separate armeabi folder
    b) Copy facebook folder to src/giderosmobile/android/plugins folder
    c) Inside your main activity:
    i) Add lib as System.loadLibrary("facebook");
    ii) Add external class as "com.giderosmobile.android.plugins.facebook.GFacebook"
    Inside your AndroidManifest:

    Cheers,

    Simon
  • I faced a issue like that before. Check that .so files of Facebook is not upper case. I mean it should be facebook.so.
  • simwhisimwhi Member
    edited April 2016
    @mertocan Just checked. They are all lowercase.

    I started over with a new export and then taking a different approach. I decided to import the facebook-sdk version 3.14 as provided in the Gideros installation folder. I have imported it as a module into Android Studio and then I followed all the other instruction as before. Still no luck though
  • Can anyone give any clues to why I'm getting these errors?


    txt
    txt
    error.txt
    11K
Sign In or Register to comment.