How do I turn likes to variable with Firebase?

Get help using Construct 2

Post » Tue Nov 08, 2016 9:54 pm

Hi, i need to turn the likes from a post on facebook to a variable in a game.
I think this is possible sending the data likes from facebook to a server like firebase and the server to the game.

I found this instruction from facebook:

But i dont know what to do with this codes.
Posts: 2
Reputation: 679

Post » Wed Nov 09, 2016 5:33 pm

Can you post the text that it replies with?

From the API page, it looks like it is a JSON object whose "total_count" field is the one you are interested in.

You should be able to use @Yann 's JSON plugin or @rexrainbow 's Hash plugin to parse the JSON and access the value you want.
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
Posts: 1,419
Reputation: 4,867

Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 7 guests