How do I make a share game app on facebook ?

Get help using Construct 2

Post » Tue Jun 24, 2014 7:20 am

I want to upload my game,then at my game,they can share they highscore,and share my game link,how to do that?
~Everyone can make GAMEs~
B
58
S
12
G
1
Posts: 414
Reputation: 5,961

Post » Wed Jun 25, 2014 12:41 pm

anyone?
~Everyone can make GAMEs~
B
58
S
12
G
1
Posts: 414
Reputation: 5,961

Post » Wed Jun 25, 2014 1:16 pm

1. create your app at developer.facebook.com
2. get app ID and app Secret from facebook (This is unique identifier of your app and "password" to allow your construct2 project to use fb app)
fbd.JPG

2.1 set "SITE URL" to where you are going to export/preview your project.
e.g. I'm using dropbox public/ folder to put my apps for linking to people and deep-previewing after export.
probably, setting url to http://localhost:50000 or http://192.168.1.112:50000 (for over-wi-fi previewing) will work.

3. add Facebook object in construct2 project.
4. fill in app ID and app Secret in construct 2
appID.JPG


You are ready to communicate to FB app.
make events what you want to do.


some example events.
fbshare.JPG

on pressed sprite called FBshare, it will do some actions.
1.log in
2.prompt to share app - asks user to click "publish". Unless wont do nothing. Image

3. publish wall post will automatically publish info without asking. (you need to log in user first for this feature and probably user should one time allow your app to post)
Image



Feel free to ask anything you can't udnerstand
You do not have the required permissions to view the files attached to this post.
B
10
S
2
G
1
Posts: 5
Reputation: 1,247

Post » Thu Jun 26, 2014 4:06 am

@Caqtus Hey..!! i'm so Thankssfull :D
~Everyone can make GAMEs~
B
58
S
12
G
1
Posts: 414
Reputation: 5,961

Post » Thu Jun 26, 2014 11:44 pm

@Caqtus

add one more "THANK YOU" for your explanation! I am planning to release something this weekend .... and if it works .... we'll cross that bridge when we get there. :)
B
14
S
4
Posts: 190
Reputation: 1,735

Post » Tue Aug 12, 2014 9:26 am

@Caqtus

Does this work on mobile as well? CocoonJS etc?
B
5
S
1
Posts: 7
Reputation: 399

Post » Wed Jun 03, 2015 1:34 pm

Is the app secret needed for this to work? My login button is not working and that is the only thing I can see I'm doing different (I read in the tutorial that I should not add it unless I will use scores, which I don't)
B
8
S
1
Posts: 61
Reputation: 578

Post » Tue Jul 21, 2015 3:10 pm

where will i put the 2.1?

this is what happening when it was activated

Given URL is not allowed by the Application configuration: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.
B
6
S
1
Posts: 22
Reputation: 461

Post » Tue Jul 28, 2015 4:43 am

I am getting the same message while testing.

Found this in another post and it solves the problem.

https://www.facebook.com/help/community ... 8419109491
B
42
S
16
G
3
Posts: 169
Reputation: 4,383


Return to How do I....?

Who is online

Users browsing this forum: YoHoho and 7 guests