Facebook In-Game Integration

Discussion and feedback on Construct 2

Post » Mon Jan 09, 2012 7:03 am

Hi I'm wondering about how much Facebook integration is possible with Construct?

I know that a high score list is possible.

But what about in the game itself? For example, taking the name of a random friend of the player to use in a message boxor using the profile picture of a random friend as an icon.

In particular I am thinking of randomly-generated names for NPCs that you have to save, so it feels like you are saving your actual friends when a little bubble pops up saying "Friend Name: Thank You!")

Are these kinds of things possible?

And if they areto open the topic up some morewhat other kinds of things would be possible to implement into a game?noise2012-01-09 07:04:21
B
4
G
1
Posts: 5
Reputation: 535

Post » Mon Jan 09, 2012 8:13 am

I'm not sure if you can get the name of a friend using the Facebook object, but there are third party plugins that might allow you to call some JavaScript or HTML so you can do so.pixel wall clock

You can randomly generate a name yes, maybe using an array. Or you can store the names in a seperate text file then call them using JavaScript.

You can use the players Facebook name, have a nice little welcome message or something.

You can post to Facebook, achievements, scores ect.

Later I'll make a example for you
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Mon Jan 09, 2012 8:22 am

All the features of the Facebook object are listed in the manual.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Mon Jan 09, 2012 5:56 pm

The manual doesn't make any mention of the things that I was asking about and I was wondering if they were possible as additional or advanced features or maybe with workarounds (like smitchell saidthanks dude).

You shouldn't imply that I didn't already look for the answers to my question. Honestly it doesn't even look like you read my post, but gave me some kind of patronizing stock answer upon seeing the word "facebook".noise2012-01-09 17:57:36
B
4
G
1
Posts: 5
Reputation: 535

Post » Mon Jan 09, 2012 7:29 pm

Well looking at the Facebook javascript sdk, in particular here it appears that everything on Facebook is potentially accessible.
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755

Post » Mon Jan 09, 2012 7:39 pm

Sorry @noise, I didn't mean to be patronizing. If I could better word my response, I would say that the manual lists a complete reference of all the features the object has, so if you don't see it listed there, it's not supported - there's nothing advanced or hidden away that isn't mentioned in the manual. I'll add some of your ideas to our todo list though so hopefully they'll be possible in future.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Mon Jan 09, 2012 7:49 pm

If you need me to make a little capx showing some things you can do with Facebook, I'll be happy to.

If you use the third party plugin(URL image) or div image (don't remember what it's called you can get the users profile picture quite easily, might be useful if you want in game avatars or something
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Wed Jul 31, 2013 5:35 pm

Hi smitchell. Can you upload a capx file with facebook plugin top 10 leaderboard?

Please is very importand!
B
5
Posts: 2
Reputation: 361

Post » Thu Dec 26, 2013 5:52 pm

Hi @smitchell did you ever create a little capx with FB functionality? I have been looking into the manual, but maybe I missed a tutorial... any recommendations on how to learn the integration with FB (besides the Manual)?

I want to check how to publish xxx friend beat your score in yyy game, invitations to your game from other friends in FB, login with your FB account to post your score, etc... and similar things that you can do with opengraph in FB.

is this feasible with the FB functionality out of the box in C2 or should I start thinking about a plugin?

Thanks
B
8
S
3
G
1
Posts: 135
Reputation: 2,209


Return to Construct 2 General

Who is online

Users browsing this forum: harrio and 2 guests