[Unsupported] Facebook Mobile Extension - OpenFL

riki82

  • Posts: 326
I have a problem with the extension.
I have everything set up and working perfectly on iOS .
Android gives me this error on login
Code: [Select]
[LOG] Running command: TRACE
[LOG]  - Changing directory: /Users/riks/stencylworks/android-sdk/android-sdk-macosx//platform-tools/
[LOG]  - Running command: ./adb logcat -c
[LOG]  - Changing directory: /Users/riks/stencylworks/android-sdk/android-sdk-macosx//platform-tools/
[LOG]  - Running command: ./adb logcat
[LOG] --------- beginning of /dev/log/main
[LOG] I/trace   (10242): Purchases.hx:32: Purchases: Started
[LOG] I/trace   (10242): HypFacebook.hx:45: constructor ::: 1447476515487396
[LOG] I/trace   (10242): HypFB_set_event_callbacks
[LOG] I/trace   (10242): HypFacebook null: 1447476515487396
[LOG] I/trace   (10242): FacebokExtension.hx:40: new HypFacebook started
[LOG] --------- beginning of /dev/log/system
[LOG] I/trace   (10242): Engine.hx:1619: Switching to scene 2
[LOG] I/trace   (10242): HypFacebook.hx:45: constructor ::: 1447476515487396
[LOG] I/trace   (10242): HypFB_set_event_callbacks
[LOG] I/trace   (10242): HypFacebook null: 1447476515487396
[LOG] I/trace   (10242): FacebokExtension.hx:40: new HypFacebook started
[LOG] I/trace   (10242): Script.hx:2247: Loaded Save: mySave
[LOG] I/trace   (10242): Engine.hx:1619: Switching to scene 1
[LOG] I/trace   (10242): Script.hx:2220: FLUSHED
[LOG] I/trace   (10242): Script.hx:2231: Saved Game: mySave
[LOG] I/trace   (10242): FacebokExtension.hx:89: Facebook Login Start!
[LOG] I/trace   (10242): HypFacebook.hx:61: connect
[LOG] I/trace   (10242): HypFacebook.hx:73: bSessionValid ::: false
[LOG] I/trace   (10242): HypFacebook.hx:61: connect
[LOG] I/trace   (10242): HypFacebook.hx:73: bSessionValid ::: false
[LOG] I/trace   (10242): HypFacebook.hx:61: connect
[LOG] I/trace   (10242): HypFacebook.hx:73: bSessionValid ::: false
[LOG] I/trace   (10242): HypFacebook.hx:61: connect
[LOG] I/trace   (10242): HypFacebook.hx:73: bSessionValid ::: false
[LOG] I/trace   (10242): ActorEvents_82.hx:68: non connesso

"non connesso" is a print event
help me!
Riki

ahmadoweda

  • Posts: 307
what is this extension for? logging with you facebook account to play with your friends online? or to get your friends high scores?

sugarontop

  • Posts: 41
I have installed everything but unfortunately I get this error when trying to compile:
#FacebokExtension has no field facebookGetKeyHashes

Kazetoon

  • *
  • Posts: 556
Could you use this extension to reward the player if the app is shared on Facebook? What I mean is,  is there a way to know if the player has posted a feed dialog?
Little Drop - Try it out!
     
iphone/ipad Android
Newgrounds Stencyl Arcade Kongregate
Developer Website

smpatterson3

  • Posts: 4
I have installed everything but unfortunately I get this error when trying to compile:
#FacebokExtension has no field facebookGetKeyHashes

I also received this error. I'll run through the install process again, but it already took me over an hour.  :'(

But its totally worth the effort. Good job!

sugarontop

  • Posts: 41
Let me know if reinstall works for Android. On my side I couldn't make it work:(

sugarontop

  • Posts: 41
Finally made it to work and managed to get the PXR out. Removed the hash block and now I have another issue. When I launch the Setup+Login+Feed sequence I get a popup asking for permission and then nothing happens. In the log I have:

03-26 13:08:17.316: I/trace(32549): HypFacebook.hx:45: constructor ::: 208141909397119
03-26 13:08:17.316: I/haxe plugin(32549): Got Load Proc 5ef432ec
03-26 13:08:17.316: I/trace(32549): HypFB_set_event_callbacks
03-26 13:08:17.321: D/dalvikvm(32549): Trying to load lib /mnt/asec/com.sugarontop.popcorn-1/lib/libhypfacebook.so 0x42512bf0
03-26 13:08:17.321: D/dalvikvm(32549): Shared lib '/mnt/asec/com.sugarontop.popcorn-1/lib/libhypfacebook.so' already loaded in same CL 0x42512bf0
03-26 13:08:17.321: I/trace(32549): HypFacebook null: 208141909397119
03-26 13:08:17.321: W/trace(32549): constructor ::: 208141909397119
03-26 13:08:17.321: I/trace(32549): FacebokExtension.hx:40: new HypFacebook started
03-26 13:08:17.321: I/trace(32549): FacebokExtension.hx:89: Facebook Login Start!
03-26 13:08:17.321: I/trace(32549): HypFacebook.hx:61: connect
03-26 13:08:17.336: W/trace(32549): new session created...
03-26 13:08:17.336: W/trace(32549): Session state: CREATED
03-26 13:08:17.341: I/trace(32549): HypFacebook.hx:73: bSessionValid ::: false
03-26 13:08:17.341: I/trace(32549): HypFacebook.hx:61: connect
03-26 13:08:17.341: W/trace(32549): Session state: CREATED
03-26 13:08:17.371: I/power(2401): *** acquire_dvfs_lock : lockType : 1  freq : 1200000
03-26 13:08:17.371: D/SSRMv2:CustomFrequencyManagerService(2401): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT  frequency : 1200000  uid : 1000  pid : 2401  pkgName : ACTIVITY_RESUME_BOOSTER@5
03-26 13:08:17.371: W/ActivityManager(2401): mDVFSHelper.acquire()
03-26 13:08:17.431: I/InputReader(2401): Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=171862816781000
03-26 13:08:17.431: I/InputDispatcher(2401): Delivering touch to: action: 0x1
03-26 13:08:17.516: I/SecureStorage(32617): [INFO]: Secure Storage Daemon is preparing to run
03-26 13:08:17.521: I/SecureStorage(32617): [INFO]: Secure Storage Daemon successfully binded a socket
03-26 13:08:17.541: I/SecureStorage(32617): [INFO]: Secure Storage Daemon successfully connected to TA or driver
03-26 13:08:17.551: E/SecureStorage(32617): [ERROR]:TZ Return code: -1 (0xffffffff)
03-26 13:08:17.551: E/SecureStorage(32617): [ERROR]:Error load config to TZ
03-26 13:08:17.551: E/SecureStorage(32617): [ERROR]:Error sending config file to TA/driver!
03-26 13:08:17.551: E/SecureStorage(32617): [ERROR]:Secure Storage Daemon failed to start
03-26 13:08:17.561: I/SecureStorage(32617): [INFO]: Secure Storage Daemon stopped
03-26 13:08:17.601: D/dalvikvm(2401): GC_FOR_ALLOC freed 1585K, 21% free 55270K/69764K, paused 170ms, total 170ms
03-26 13:08:17.601: D/DisplayPowerController(2401): SSTEMP : mIsLockZone = false
03-26 13:08:17.606: I/trace(32549): HypFacebook.hx:73: bSessionValid ::: false
03-26 13:08:17.606: I/trace(32549): HypFacebook.hx:61: connect
03-26 13:08:17.606: W/trace(32549): Session state: OPENING
03-26 13:08:17.606: I/trace(32549): HypFacebook.hx:73: bSessionValid ::: false
03-26 13:08:17.606: I/trace(32549): HypFacebook.hx:61: connect
03-26 13:08:17.606: W/trace(32549): Session state: OPENING
03-26 13:08:17.606: I/trace(32549): HypFacebook.hx:73: bSessionValid ::: false
03-26 13:08:17.606: V/SmartFaceService - 3rd party pause(2401): onReceive [android.intent.action.ACTIVITY_STATE/com.sugarontop.popcorn/pause]
03-26 13:08:17.611: I/trace(32549): Java_fr_hyperfiction_HypFacebook_onFBEvent
03-26 13:08:17.611: I/trace(32549): hypfb_dispatch_event
03-26 13:08:17.611: I/trace(32549): HypFacebook.hx:304: _onEvent ::: OPENING -  -
03-26 13:08:17.611: I/trace(32549): HypFacebook.hx:337: pas connu
03-26 13:08:17.611: I/trace(32549): HypFacebook.hx:344: OPENING??

Suggestions?

sugarontop

  • Posts: 41
Finally solved it... Really weird how repeating the same action sometimes brings different results with computers...

alanluong66

  • Posts: 3
After installing the extension, and able to login using the Facebook Login block, how can we display user profile such as name and profile picture in our game?

thatserafimkid

  • Posts: 4
@sugarontop
How were you able to solve the problem with the Keyhash? I got the same problem and gave up after not being bale to figure it out.

GeorgeN

  • Posts: 859
After installing the extension, and able to login using the Facebook Login block, how can we display user profile such as name and profile picture in our game?

As the last version this Extension support:
Login
Logout
Log check
Full feed dialog sumbmission

alanluong66

  • Posts: 3
Thanks for your reply GeorgeN, but I'm sorry for still not understood. I placed the login button on the scene and clicked on it to login with Facebook. After I successfully login, I still don't see the Facebook name and user profile on the scene.

GeorgeN

  • Posts: 859
Thanks for your reply GeorgeN, but I'm sorry for still not understood. I placed the login button on the scene and clicked on it to login with Facebook. After I successfully login, I still don't see the Facebook name and user profile on the scene.

There is no such thing. You can use this extension to post things with feed dialog on your profile.

thatserafimkid

  • Posts: 4
Thanks for your reply GeorgeN, but I'm sorry for still not understood. I placed the login button on the scene and clicked on it to login with Facebook. After I successfully login, I still don't see the Facebook name and user profile on the scene.
As of now this is more of a Facebook share button than anything else.

alanluong66

  • Posts: 3
Quote
As of now this is more of a Facebook share button than anything else.

Now it makes a lot more sense. I kept thinking of the username and profile will show up in my game after login.