Simple social Share without plugin

1

Stats

2,675 visits, 3,709 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 26 Jul, 2017. Last updated 19 Feb, 2019

1. Open Construct 2 and create a new project File> New> Create empty project.

2. In Layout 1 add a new Browser, Text and Touch object.

3. In Event sheet 1 add global variable give name value with type number.

4. In Event sheet 1 create new event add event> system> every tick (interval = 1.0) and add action add action> system> Add to> value = 1.

5. Create a new event Touch> On touched object> select Text.

6. Add action Browser> Open url in new windows on touch event. Copy the code below and place it in the URL field

"Https://www.facebook.com/sharer/sharer.php?u=marmisdev.blogspot.com&quote=I reach" & round (Value) & "Meters a new world record now and forever."

* URL share can be changed and adjusted, can see on this link Bradvin

7. Then try to preview or directly exported to HTML5 and made into APK.

#NOTE

"As of April 18, 2017, the following parameters are no longer supported by the Graph API 2.9 and higher.For version 2.8 and lower, those parameters will continue to work until July 17, 2017."

So, i made alternatif tutorial with parameter "Quote" for sharing description.

Read more here developers.facebook.com/docs/sharing/reference/feed-dialog

Template: NOTHING

Test file: HERE

TESTED WITH CORDOVA CLI

  • 0 Comments

Want to leave a comment? Login or Register an account!