# Facebook Like & Share button

**URL:** <https://forum.kirupa.com/t/facebook-like-share-button/331456>\
**Category:** flash\
**Created:** [August 5, 2013, 11:27am UTC](https://forum.kirupa.com/t/facebook-like-share-button/331456 "2013-08-05T11:27:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![theicecube92](https://avatars.discourse-cdn.com/v4/letter/t/b2d939/32.png) [@theicecube92](https://forum.kirupa.com/u/theicecube92)\
**Post date:** [August 5, 2013, 11:27am UTC](https://forum.kirupa.com/t/facebook-like-share-button/331456/1 "2013-08-05T11:27:08Z")

</div>

Hey guys,  
I was wondering if there is a way to create a ‘like’ button in flash as2 that when it’s clicked, it will get me to facebook to confirm the ‘like’. After the confirmation, I want flash to do something. I want this for the ‘share’ button too.

Something like: “Like our Facebook page and receive 30 coins!”, you know, those type of games.

I want to make an upgrade type game, where you can upgrade things and become more powerful. So my game will have a shop also, and a ‘free’ category, where you can get free coins if you ‘like’ a facebook page or ‘share’ it. 😏

I have this code from here: _[http://www.kirupa.com/forum/showthread.php?361866-AS2-Facebook-Share-Button-Flash](http://www.kirupa.com/forum/showthread.php?361866-AS2-Facebook-Share-Button-Flash)_

```auto
on (release) {
    _root.getURL("http://www.facebook.com/share.php?u=http://www.yourwebsite.com/", "_blank");
}

```

So after I confirm my ‘share’, I want flash to do something…

Thanks!  
(Sorry for my bad English)
