Facebook

Get help using Construct 2

Post » Sat Dec 17, 2011 1:11 pm

Can anyone, who has succesfully integrated the FaceBook-Plugin, please publish the CAPX. Stupid me, can't get it to work and would like to see a running example.

Thx

B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Sat Dec 17, 2011 1:26 pm

The how do I FAQ has a couple of examples.
You might also want to do a search, in case I missed some topics on the forum.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Sun Dec 18, 2011 4:12 pm

Yeash, there are two examples that does not help me a bit, since they - as well as the tutorial - don't explain the full "scope" of attaching to Facebook. That's the reason I was asking for an example CAPX...

....maybe me is just to stupid to understand the FAQ
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Sun Dec 18, 2011 4:31 pm

Well the facebook object is pretty self explanatory.

You add the facebook object.

If you then click on the facebook object whist its in your objects panel(By default, The right hand side), Then look to the properties bar(Left hand side) it will ask for your APP ID, This is given you by facebook when you create a app.

To create a app you need to go to developers.facebook.com and create a app.

Now to use the facebook plugin, call a event like,

Button - on click
     - facebook - login

This is now set up so you can use the users facebook in your game,

So now you can publish to stream or scores ect, Just play around with it.

Note it will only work once exported, uploaded to a server then give the correct directory to facebooks iframe..
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Sun Dec 18, 2011 5:13 pm

Thanks a bunch. I will try this soon
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Tue Apr 03, 2012 4:36 pm

Hello all!
I've included the facebook object on my project which is live at facebook (apps.facebook.com/galaxium) but it only works for me! When I play the game, I can login, receive high score tables, post new high scores and post on the wall (automatically and with permission). But noone else can! I know I am not using the sandbox mode of facebook, the app is live and people can play the game, but not interact with the facebook object functions at all. Any ideas?
B
3
Posts: 6
Reputation: 562


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 16 guests