Adding a LIKE button for liking a game on Facebook

I am Making a game and i have integrated facebook in it , I want a like button so when i post some message from the game , that like button should like the game.

Can any one please help ?
Do you have any idea how to implement it ?

Thanx ,
Vedangi [import]uid: 95790 topic_id: 24792 reply_id: 324792[/import]

Hey there,

You can’t do this - the “like” button in that scenario is for the post itself. (You can’t modify FB’s built in like/comment buttons.)

Sorry!

Peach :slight_smile: [import]uid: 52491 topic_id: 24792 reply_id: 100527[/import]

Thanx a lot Peach :slight_smile: [import]uid: 95790 topic_id: 24792 reply_id: 100530[/import]

Hi Peach et al,

Could you use a web popup with the options set to the size of the FB like button pointing to a local file included as part of the build that contains the ‘FB like’ HTML script and code that can be found at http://developers.facebook.com/docs/reference/plugins/like/

I have not tried it, just a thought.

Thx, Jason [import]uid: 29951 topic_id: 24792 reply_id: 100536[/import]

Thanx Jason I am trying whether it works or not :slight_smile: [import]uid: 95790 topic_id: 24792 reply_id: 100724[/import]

Hey Jason,

I haven’t tried this but in theory I think it could very well work; although this doesn’t change the fact the default links under a message cannot be changed I think it would be very cool to include this as another option in an app.

Seth, please let us know how you go - very interested in this!

Peach :slight_smile: [import]uid: 52491 topic_id: 24792 reply_id: 100751[/import]

hey everyone

I found this http://www.crawlspacegames.com/blog/likey-likey-integrating-facebook-like-buttons-corona-sdk

may be this can help , still havent tried it .

Thanx :slight_smile: [import]uid: 95790 topic_id: 24792 reply_id: 100755[/import]

That code is interesting and up until recently I had it (partially) working on iOS. I have the user authenticated via the facebook.login API. I have my like page on my webserver that I show in a popup. I click the like button and then I am presented with a FB login screen. At some point in the past clicking Like would return me to my (broken) like page rather than the login. It seems like the browser context being used by corona (via the web popup) does not pass along the FB authentication information it used to. What’s interesting is that if I hit the same link in Safari on the same device it returns me to the page I expect rather than showing me the login screen. I’m still not quite sure what’s going on here so I’ve been hesitant to raise it as an issue… [import]uid: 117383 topic_id: 24792 reply_id: 105550[/import]