native.showPopup( "social", options ) can it be made non editable

Hi,

max here, I would like to know if 

native.showPopup( “social”, options )

local options = {

service = “facebook”,
message = “Check out this photo!”,
listener = eventListener,
image = {
{ filename = “pic.jpg”, baseDir = system.ResourceDirectory },
{ filename = “pic2.jpg”, baseDir = system.ResourceDirectory }
},
url = "http://coronalabs.com"
}

could be made non editable. Right now the ‘message’ part can be edited by user before posting 

please help

Thanks,

max

fwiw:  it’s actually a violation of fb’s terms of service to auto-fill any text (and they’re checking for it)

This is by design.  We use the sheets provided by the vendor to do this and they set the requirements on editability.

Rob

Hi Rob,

Thank you for the reply, i have another issue about the native.showPopup( “social”, options )

loacl variable=100

native.showPopup( “social”, options )

local options = {

service = “facebook”,
message = "score is : "…variable,
listener = eventListener,
image = {
{ filename = “pic.jpg”, baseDir = system.ResourceDirectory },
{ filename = “pic2.jpg”, baseDir = system.ResourceDirectory }
},
url = "http://coronalabs.com"
}

 

when i try to display

message = "score is : "…variable,

my score through a variable it shows 0, is this the right way to display through message or is there another alternative 

 

Thanks,

Max

As davebollinger pointed out, if YOU put anything into the “message” field programmatically you are violating Facebook’s terms of service.
You have to leave it blank and let the user fill in any text they want to send.

Is that an exact copy/paste of your code?  If so, you’re calling native.showPopup() before you ever define the options for it.

Rob

Hi Rob,

No i call native.showPopup() after defining option. But the problem is i cannot display any variable in the message portion. It displays as 0 or " "(blank space), like this 

message = "score is : "…variable,

please check with an example, i tried both number and string.

Thanks,

Max

Please post your code.

fwiw:  it’s actually a violation of fb’s terms of service to auto-fill any text (and they’re checking for it)

This is by design.  We use the sheets provided by the vendor to do this and they set the requirements on editability.

Rob

Hi Rob,

Thank you for the reply, i have another issue about the native.showPopup( “social”, options )

loacl variable=100

native.showPopup( “social”, options )

local options = {

service = “facebook”,
message = "score is : "…variable,
listener = eventListener,
image = {
{ filename = “pic.jpg”, baseDir = system.ResourceDirectory },
{ filename = “pic2.jpg”, baseDir = system.ResourceDirectory }
},
url = "http://coronalabs.com"
}

 

when i try to display

message = "score is : "…variable,

my score through a variable it shows 0, is this the right way to display through message or is there another alternative 

 

Thanks,

Max

As davebollinger pointed out, if YOU put anything into the “message” field programmatically you are violating Facebook’s terms of service.
You have to leave it blank and let the user fill in any text they want to send.

Is that an exact copy/paste of your code?  If so, you’re calling native.showPopup() before you ever define the options for it.

Rob

Hi Rob,

No i call native.showPopup() after defining option. But the problem is i cannot display any variable in the message portion. It displays as 0 or " "(blank space), like this 

message = "score is : "…variable,

please check with an example, i tried both number and string.

Thanks,

Max

Please post your code.