rate game and share to facebook

Hello,

I have create my game and I want to publish it as soon as I finish the the function of Rate and Share to FB (facebook) buttons.

for the rate I saw this tutorial https://developer.coronalabs.com/category/tags/rate

local rateit = require(“rateit”)

  rateit.setiTunesURL(1234564)

  rateit.setAndroidURL(1234564)

  function buttonTouched(event)

  rateit.openURL()

  end

may I know what to put or replace the “1234564”?

and in the Share to FB button, I just want to capture the current screen and post to users fb account with the name of the game or messages…

thanks…  

I dont’ know what rateIt is.  It sounds like a community created solution.   Our officially supported method uses our native.showPopup() method using the “appStore” option:   http://docs.coronalabs.com/api/library/native/showPopup.html

Rob

Hello Rob,

I just found that one in the said link. https://developer.coronalabs.com/category/tags/rate

Rate It Button

Posted by  Richard P.,  Posted on  March 24, 2012,  Last updated  March 25, 2012

I made a simple extension that makes it easier to add a “Rate it” button to a Game or App.

 

1
2
3
4
5
6
7
8
9
10   local rateit = require(“rateit”)
 
  rateit.setiTunesURL(1234564)
  rateit.setAndroidURL(1234564)
 
  function buttonTouched(event)
 
  rateit.openURL()
 
  end

 

Simple version of using it within what you’re developing. It will detect what device you are using, either Android or iPhone and go to the proper market place.

Save the code below into rateit.lua.

 

1
2
3
4
5
6
7 local R = {}
 
 
local AppleURL
local AndroidURL
 
local setiTunesURL = function (id)

RATE the game application - what I want is to have a popup dialog that has a five star and the rate is based on the selected star.  It you used the call in facebook after the call it will popup.

please give me a link for any source code example or corana tutorial

This was a community written tutorial that’s almost 3 years old and pre-dates Graphics 2.0 and there may be other deprecated issues that make this tutorial a bit dated. 

My advice still stands. You should look at the documentation for native.showPopup(“appStore”) and implement your app that way.

Rob

ok… thanks,

but since it is native it will not be test in the simulator right it should be compiled and download the .apk to the phone and installed so that you can see the result?

Correct, you will need to test this on a device.

I dont’ know what rateIt is.  It sounds like a community created solution.   Our officially supported method uses our native.showPopup() method using the “appStore” option:   http://docs.coronalabs.com/api/library/native/showPopup.html

Rob

Hello Rob,

I just found that one in the said link. https://developer.coronalabs.com/category/tags/rate

Rate It Button

Posted by  Richard P.,  Posted on  March 24, 2012,  Last updated  March 25, 2012

I made a simple extension that makes it easier to add a “Rate it” button to a Game or App.

 

1
2
3
4
5
6
7
8
9
10   local rateit = require(“rateit”)
 
  rateit.setiTunesURL(1234564)
  rateit.setAndroidURL(1234564)
 
  function buttonTouched(event)
 
  rateit.openURL()
 
  end

 

Simple version of using it within what you’re developing. It will detect what device you are using, either Android or iPhone and go to the proper market place.

Save the code below into rateit.lua.

 

1
2
3
4
5
6
7 local R = {}
 
 
local AppleURL
local AndroidURL
 
local setiTunesURL = function (id)

RATE the game application - what I want is to have a popup dialog that has a five star and the rate is based on the selected star.  It you used the call in facebook after the call it will popup.

please give me a link for any source code example or corana tutorial

This was a community written tutorial that’s almost 3 years old and pre-dates Graphics 2.0 and there may be other deprecated issues that make this tutorial a bit dated. 

My advice still stands. You should look at the documentation for native.showPopup(“appStore”) and implement your app that way.

Rob

ok… thanks,

but since it is native it will not be test in the simulator right it should be compiled and download the .apk to the phone and installed so that you can see the result?

Correct, you will need to test this on a device.