Why facebook sdk won't work with ejecta and cocoonJS?

Discussion and feedback on Construct 2

Post » Wed Aug 27, 2014 10:11 am

@calimaborges

Yah I bet, when it comes to cocoonjs I haven't got a clue. I just recently realized you need to use something called a webview. Lol, glad you got it working. :) people are going to absolutely love you.
www.h1k3.tech

We are here for you!
B
87
S
22
G
16
Posts: 715
Reputation: 16,765

Post » Wed Aug 27, 2014 12:46 pm

@calimaborges

Awesome! Is your plugin ready to be tested? If so I'll give it ago.

If all goes well it maybe worth integrating your work into the official opensource plugin => https://github.com/ludei/Construct-2-plugin. So many people have been asking for this feature so it will really help out a lot of people. Thank you!
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Wed Aug 27, 2014 12:55 pm

He is awesome. Round of applause. :) I don't think it's officially ready from the sounds of it. Just the session data means the user access token and such. He needs to build in the extra features. I don't mind helping with that but he'll need to translate it to cocoonjs because that whole system is over my head. Lol
www.h1k3.tech

We are here for you!
B
87
S
22
G
16
Posts: 715
Reputation: 16,765

Post » Wed Aug 27, 2014 7:32 pm

Thank you! =)

It is not ready yet. I plan to work on it tonight. If nothing creepy happens I will probably have most features working by tomorrow morning.
B
4
Posts: 9
Reputation: 243

Post » Thu Aug 28, 2014 6:05 am

Just made a push to github (https://github.com/calimaborges/constru ... ded-plugin)

It is not ready yet. Here is a status list of what should and shouldn't work:

On Facebook ready: it is implemented using setTimeout for now to maintain compatibility (very bad, I know). This trigger will disappear in the future.
Is logged in to Facebook: OK
Request login: OK
On Facebook login succeeded: OK
On Facebook login failed: OK (but prints error on console. I will investigate why.)
Request logout: OK
On Facebook logout: OK
-----
Request user score: Not implemented yet
On score received: Not implemented yet
Submit score of int(n): Not implemented yet
On score submit success: Not implemented yet
Request Facebook scoreboard: Not implemented yet
On score info arrived: Not implemented yet

I plan to complete most of the not implemented features tomorrow.

I created readme.md file with some very basic instructions.
I also added a capx example file. You should be able to open it fill the App ID, export it to Cocoon and test it into a Custom CocoonJS Launcher with Ludei's compile properties and Facebook properly configured for it.

If you have any trouble testing it or if you have any suggestions please talk to me.
Thank you.
B
4
Posts: 9
Reputation: 243

Post » Fri Aug 29, 2014 4:45 am

Ok... Pushed with the same features that worked before, which means:

On Facebook ready: it is implemented using setTimeout for now to maintain compatibility (very bad, I know). This trigger will disappear in the future.
Is logged in to Facebook: OK
Request login: OK
On Facebook login succeeded: OK
On Facebook login failed: OK
Request logout: OK
On Facebook logout: OK
Request user score: OK
On score received: OK
Submit score of int(n): OK
On score submit success: OK
Request Facebook scoreboard: OK
On score info arrived: OK

Projects that used to work with the extension still work without any changes. I will take a little break now, and will fork Ludei's Construct-2 GitHub and try to integrate what I did there.

Again, any suggestions or questions, please talk to me.
Thank you. Hope it helps.
B
4
Posts: 9
Reputation: 243

Post » Fri Aug 29, 2014 8:28 am

Awesome work Calimaborges, Thanks alot mate!

I have only 1 question - Are you going to be implementing a post to wall function?

Cheers again for your work :)
B
6
S
3
G
3
Posts: 9
Reputation: 2,120

Post » Fri Aug 29, 2014 12:07 pm

@Nameo, thank you!

Well, it doesn't seem hard. I will give it a try =)

I just created a issue in the GitHub repo (https://github.com/calimaborges/constru ... n/issues/8). You are welcome to watch it if you want.

I will reply here when it is done anyway.
B
4
Posts: 9
Reputation: 243

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: blackhornet, dwtiger, tarek2 and 2 guests