The documentation shows the Android and iOS icons, yet still says this:
"Facebook SDK plugin is available for only iOS as an external plugin. To use facebook module:"
Also it does not give links to the Android download sdk, but does for iOS.
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
Comments
Unfortunately currently I think Facebook does not provide compatible Android SDK anymore, and the only one you can get was in the repo:
https://github.com/ar2rsawseen/GiderosFacebookAndroidPlugin
But new SDK versions, are so different (IOS and Android), that creating same API for them is very hard, if not impossible.
So more and more I'm leaning towards creating universal Lua module for facebook. Which could actually be quite easy, but then again, you won't be able to show facebook dialogs and would need to create everything yourself, and then there is the support with Facebook app installed and without it. So again a dead end.
Makes me very very unhappy
@ar2rsawseen have you seen any actual user posts completing with sharer.php approach? By that I mean, are the users discouraged when presented a login screen from the fb webpage and return back to the game? Or do they go on to complete the post? Just curious.
https://deluxepixel.com
The hardest part was the authorization workflow, login, relogin, permissions, etc plus there are two types of authorizations, read only and publish.
Lucky for you guys that all will be dealt internally, all you guys will have is login/logout methods and provide sufficient permissions
Likes: SinisterSoft
For now I've wrapped methods like this
Methods
Likes: SinisterSoft
Can you do this with Facebook - do they allow you to save things like multiple scores per game (I have one per level, etc)... or will I need to link to my own server for that kind of stuff?
https://deluxepixel.com
https://deluxepixel.com
Do you know if you can grab the 'score' from other Facebook users playing the same game?
If so I can use the level progress as the score. I can then put the facebook image on a map within the game at that particular level.
I think I'm going to add a feature like:
Connect to facebook : Gain 200 coins and see which of your friends is playing, see your friends on the map [if i can grab their 'score'!!!!]
Connect to Google : Gain a further 200 coins, add leaderboards and more...
https://deluxepixel.com
So...... this leads to the obvious question:
When will the updated plugin be ready?
https://deluxepixel.com
https://deluxepixel.com
https://deluxepixel.com
Likes: SinisterSoft
https://deluxepixel.com
https://deluxepixel.com
Likes: SinisterSoft, Nascode
Likes: SinisterSoft
http://www.nightspade.com
Unfortunately did not get too much into that yet, but no worries, weekend are usually my most producible days
Likes: SinisterSoft
https://deluxepixel.com
http://giderosmobile.com/labs/facebook-android
Likes: SinisterSoft
Conversion to Dalvik format failed with error 1
I downloaded the 3.6 facebook api and now I don't get the error.
The program works, it tries to loginto facebook but there are no event messsage. After about 1.5 seconds the app goes black screened and it exits.
Any ideas?
https://deluxepixel.com
Currently no idea, will check. And did facebook released another SDK update :O
http://stackoverflow.com/questions/20017817/conversion-to-dalvik-format-failed-with-error-1-since-facebook-sdk
It doesn't happen if I just require facebook and nop out the facebook:login, etc..
Maybe it has something to do with messages coming back after the command? (thats why it takes a while?)
Do I have to add something to the AndroidManifest.xml ???
If I send to the device in Eclipse I get this in the error stream:
01-25 11:12:27.600: E/(13639): Device driver API match
01-25 11:12:27.600: E/(13639): Device driver API version: 23
01-25 11:12:27.600: E/(13639): User space API version: 23
01-25 11:12:27.600: E/(13639): mali: REVISION=Linux-r3p2-01rel3 BUILD_DATE=Wed Oct 9 21:05:57 KST 2013
01-25 11:12:32.605: E/AndroidRuntime(13639): FATAL EXCEPTION: main
01-25 11:12:32.605: E/AndroidRuntime(13639): com.facebook.FacebookException: Cannot use SessionLoginBehavior SSO_WITH_FALLBACK when com.facebook.LoginActivity is not declared as an activity in AndroidManifest.xml
01-25 11:12:32.605: E/AndroidRuntime(13639): at com.facebook.Session.validateLoginBehavior(Session.java:1030)
01-25 11:12:32.605: E/AndroidRuntime(13639): at com.facebook.Session.open(Session.java:953)
01-25 11:12:32.605: E/AndroidRuntime(13639): at com.facebook.Session.openForRead(Session.java:388)
01-25 11:12:32.605: E/AndroidRuntime(13639): at com.giderosmobile.android.plugins.facebook.fbsimple.SimpleFacebook.openSession(SimpleFacebook.java:421)
01-25 11:12:32.605: E/AndroidRuntime(13639): at com.giderosmobile.android.plugins.facebook.fbsimple.SimpleFacebook.login(SimpleFacebook.java:135)
01-25 11:12:32.605: E/AndroidRuntime(13639): at com.giderosmobile.android.plugins.facebook.GFacebook$1.run(GFacebook.java:91)
01-25 11:12:32.605: E/AndroidRuntime(13639): at android.os.Handler.handleCallback(Handler.java:730)
01-25 11:12:32.605: E/AndroidRuntime(13639): at android.os.Handler.dispatchMessage(Handler.java:92)
01-25 11:12:32.605: E/AndroidRuntime(13639): at android.os.Looper.loop(Looper.java:176)
01-25 11:12:32.605: E/AndroidRuntime(13639): at android.app.ActivityThread.main(ActivityThread.java:5419)
01-25 11:12:32.605: E/AndroidRuntime(13639): at java.lang.reflect.Method.invokeNative(Native Method)
01-25 11:12:32.605: E/AndroidRuntime(13639): at java.lang.reflect.Method.invoke(Method.java:525)
01-25 11:12:32.605: E/AndroidRuntime(13639): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
01-25 11:12:32.605: E/AndroidRuntime(13639): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
01-25 11:12:32.605: E/AndroidRuntime(13639): at dalvik.system.NativeStart.main(Native Method)
https://deluxepixel.com
Each time I do the login I get asked about permissions. How do you make it so you only get asked this once?
edit:
After a couple of goes it stopped asking for permission, seems ok now.
https://deluxepixel.com