How do I SHARE SCORE on Facebook & Twitter?

Get help using Construct 2

Post » Wed Aug 03, 2016 4:42 pm

thanks @kyatric ,
it is possible compratir the score on facebook , being a game android , windows phone , or ios ?
if so I would not find it anywhere a tutorial ,,
if not possible , to share, I remove my share button app .. :( .
sorry for my English..
B
5
Posts: 10
Reputation: 256

Post » Sun Aug 28, 2016 3:23 pm

Kyatric wrote:Using the browser object and using the URLs provided by Facebook and Twitter will allow you to post and share whatever you want from your game.
Use the "Open URL in new window" action and provide the appropriate URL/message.
myVariable is a variable (possibly global) that value is either text or numbers.

For Twitter :
Code: Select all
"twitter://post?text=" & urlencode("My message with #hashtags and directed @twitterhandle and concatening " & myVariable & " as a value.")


For FaceBook
Code: Select all
"https://www.facebook.com/sharer/sharer.php?app_id=APP_ID_SECRET_KEY&sdk=joey&u=" & urlEncode("URL_THAT_SHARES_AND_IS_SET_IN_THE_FB_APP_TO_SHARE) & "&picture="& UrlEncode("URL_TO_YOUR_PICTURE_APP_IF_YOU_HAVE_SOME") &"&display=popup&ref=plugin&src=share_button&quote=My message with #hashtags and concatening " & myVariableValue & " as a value."


You have to know though that on iOS/some mobiles for this to work, you have to use the button plugin only that will count as a user action.
Using CSS it is possible to make the button invisible under/over a sprite and still have a good looking app, but this all depends on your program.


Hello! Thank you for advice!
What is app_id=APP_ID_SECRET_KEY in facebook url?
Need i to register my Android app in facebook developers?
B
16
S
6
G
1
Posts: 109
Reputation: 1,952

Post » Fri Jul 28, 2017 9:29 pm

hello @Kyatric this method not found in cocoon? how add plugin "browser" in cocoon,thanks
B
5
Posts: 10
Reputation: 256

Post » Fri Jul 28, 2017 9:30 pm

hello @Kyatric this method not found in cocoon? how add plugin "browser" in cocoon,thanks
B
5
Posts: 10
Reputation: 256

Post » Sat Jul 29, 2017 3:55 pm

@manuelsanmartin: I don't know, cocoon is not supported officially.
It should have the standard plugin browser's functionalities working by default though.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,317
Reputation: 87,483

Post » Tue Aug 01, 2017 7:14 am

In cocoon io download the Native Share plugin and you'll be able to share your score on multiple apps, works on ios too

Image
Image
B
24
S
4
Posts: 69
Reputation: 1,518


Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest