Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
How are form fields prefilled in Facebook calls? — Gideros Forum

How are form fields prefilled in Facebook calls?

seppseppseppsepp Member
edited August 2014 in General questions
Hi,

I'm playing around with the Facebook plugin. Things are working fine so far. But: How can I prefill the form fields for facebook:dialog("feed", ...")? I tried to reach in a table like {message = "Some nice message"} - I also tried description, caption etc. but no effect visible when the dialog opens? What am I doing wrong?


Thanks in advance for your help.

Sebastian

Comments

  • ar2rsawseenar2rsawseen Maintainer
    Accepted Answer
    I think this one was in the example Gideros project:
    facebook:dialog("feed", {
    	link = "<a href="http://giderosmobile.com"" rel="nofollow">http://giderosmobile.com"</a>, 
    	picture = "<a href="http://www.giderosmobile.com/wp-content/uploads/2012/06/gideros-mobile-small.png"" rel="nofollow">http://www.giderosmobile.com/wp-content/uploads/2012/06/gideros-mobile-small.png"</a>, 
    	name = "GiderosMobile.com", 
    	caption = "Awesome tool", 
    	description = "Check out this awesome product"
    })
  • It just doesn't work =| . First of all I want to prefill the message to post.
  • ar2rsawseenar2rsawseen Maintainer
    edited August 2014 Accepted Answer
    How exactly, it does not work, dialog is not opening at all?

    Ok, from the graphs API key name message should be used to fill message.
    But on both ios and android I could not find reference to it.

    In both cases, there are mandatory fields, like I think link, you can't share anything without link.

    You can also try post without dialog:
    facebook:postToFeed({message, link, picture, name, caption, description})
  • Thanks! I somehow missed the link =| . Works great now.
Sign In or Register to comment.