Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Making share buttons — Gideros Forum

Making share buttons

antixantix Member
edited July 2016 in General questions
So I want to have facebook and twitter butons in my game. when they are clicked I would like them to post to facebook and tweet.

I found an old code by @ar2sawseen but that doesn't quite work anymore. I figured out the twitter one..
local twitter = "<a href="https://twitter.com/intent/tweet/?text=Check%20out%20Falling%20Animals,%20a%20cool%20casual%20game%20for%20android&url=https://play.google.com/store/apps/details?id=com.antix.falling_animals&quot" rel="nofollow">https://twitter.com/intent/tweet/?text=Check out Falling Animals, a cool casual game for android&amp;url=https://play.google.com/store/apps/details?id=com.antix.falling_animals&quot</a>;
application:openUrl(twitter)
But the facebook one is elusive. I can get it to the facebook page but it doesn't seem to be able to have a title, just the link to the play store. Does anyone know how to get both a title and a link working with application:openUrl()?

Comments

Sign In or Register to comment.