Facebook Plugin is never Ready

Discussion and feedback on Construct 2

Post » Tue Dec 15, 2015 2:27 pm

It calls the "On user logged in" but never calls the "On ready".
I just can use Facebook properties after On ready, correct?
because in "On Loggen in" I´m not receiving any data: Firstname, lastname, UserID.

Any help?
B
18
S
4
G
1
Posts: 143
Reputation: 1,868

Post » Tue Dec 15, 2015 8:34 pm

The userID came now with the "On logged in" and the name came with "On Name available" (just full bame, not first name nor LastName.

But I still don´t know what is the "On ready" for.
B
18
S
4
G
1
Posts: 143
Reputation: 1,868

Post » Tue Dec 15, 2015 10:40 pm

On Ready is meant to prepare the Facebook "plugin" to be fully loaded and make the game ready to receive/send info or in other words make sure that expressions and actions can be used.

By the way, make sure that you set the right permissions during "Log In" action as well as make sure that they are approved in Facebook Developer app you created.
B
9
S
2
Posts: 30
Reputation: 651

Post » Wed Dec 16, 2015 9:18 am

@frcol

I almost finish the documentation (to explain how to use the open graph..) and the files to integrate facebook in every app of contruct2 without any plugin.

see here: https://www.scirra.com/forum/viewtopic.php?t=164418

anyway, I don't like any plugin of facebook because whene the player load the app, has to login inside the app (click something) to get the permission, that's is confusing for the user (sometime works, sometime not...)

because every app ask for the permission before the app loaded, and another important thing, with the plugin you have to make a lot of events, also loops to retrive a full hiscore or others things, with my files everything is loaded before the app open very fast, and your app when is loaded, has already 3 array inside construct2 with the user profile, the hiscores (from the 1st to the last) and the achievement of the app plus what achievement the player unlocked. and to to this, you have to put just 2 events, the php file will do everything, take a data, convert to an array, and send to the app.

plus, you can post a story inside the games feed like candycrush when someone finish a level with some score... etc
B
21
S
9
Posts: 298
Reputation: 2,967

Post » Wed Dec 16, 2015 2:08 pm

Hi @Ribis, don´t you have any code to share yet? I would appreciate to see it.
B
18
S
4
G
1
Posts: 143
Reputation: 1,868

Post » Wed Dec 16, 2015 2:30 pm

frcol wrote:Hi @Ribis, don´t you have any code to share yet? I would appreciate to see it.


I will sell the documentations and the files (capx, php files) for a few bucks (15/20 $) ( if i can i will put inside the store of scirra)... I spent times to make the script and the documentation that make the array ready for construct2 etc...
and everything works perfects without do anything extra inside construct2 (for the events).

who try different plugin of facebook know how is frustrating to get work everything, and sometime could appear some bug....

I made these script for this, to make works without extra login or make extra events to get all data, especially when you have to get scores or other things...you have to make so much event and make the array inside construct2, and that is very frustrating and take a lot of time to do this...

the good thing of my files, is that you can integrate facebook with just 2/3 events inside your app (using ajax) and you will have everything before the app is loaded, when you call 1 ajax, you will load everything, and also you can post a score, achievements, and story very easy, using ajax
B
21
S
9
Posts: 298
Reputation: 2,967

Post » Thu Dec 17, 2015 5:48 pm

Hey @Ribis, could you show us some of your games using this facebook integration?
I would be happy to pay 15 or 20$ if it works well and if you offer good support.
B
73
S
19
G
1
Posts: 107
Reputation: 5,070

Post » Thu Dec 17, 2015 6:29 pm

Renfd wrote:Hey @Ribis, could you show us some of your games using this facebook integration?
I would be happy to pay 15 or 20$ if it works well and if you offer good support.


Actually I'm making a documentation to make a feed story inside the feed games.

I don't have any app to show how works in a real game, but when I finsh the documentation, I will make the app published and everyone can see how works...

basically, in your capx doesn't change anything, I made some file in php and a new index to integrate the last facebook sdk to construct2, but you need just to call some specific ajax (inside construct2) call to retrieve a data, or post some data...

very easy to use and understand, and works better than a plugin (well, plugins I tried...)

no complicate way with the event to integrate facebook, and no extra login inside the app to retrieve the data.

for the support it depends, for now in this version I will relase is just a "base version", I mean:
-user profile (GET)
-hi-scores (GET AND POST)
-achievement (GET AND POST)
-feed story (1 template, end a level with some score) (POST)
-post inside the timeline of the users (POST)

if someone want more, just PM me and I will make work (for the cost, it depends what I have to integrate), anyway, in the documentation I will explain everything, what you have to edit, what you have to make inside the app....etc
B
21
S
9
Posts: 298
Reputation: 2,967

Post » Sat Dec 19, 2015 5:28 am

@Ribis When do you expect to have this available for sale? Thanks.
B
42
S
16
G
3
Posts: 169
Reputation: 4,383

Post » Sat Dec 19, 2015 9:37 am

CDogs1964 wrote:@Ribis When do you expect to have this available for sale? Thanks.


@CDogs1964 very soon the documentation is almost completed :D and I'm adding more feature for the gamesfeed, because the documentation will explain how to make a new feed story with php and facebook graph API
B
21
S
9
Posts: 298
Reputation: 2,967

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests