PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Facebook Connect to Fill out a Gravity Form

  1. Hi !
    I would like to create a gravity form where visitors could choose to use Facebook Connect and after allowing the FB App to access their basic info, the form auto-fills with their FB info for First Name, Last Name and E-Mail.
    Do you know a way to do that ?
    Thanks.

    Posted 11 years ago on Friday July 6, 2012 | Permalink
  2. David Peralty

    Interesting idea. I haven't seen anyone do it, and I don't know enough about FB connect to even give information that would be helpful. Maybe one of the other developers might have some suggestions.

    Posted 11 years ago on Friday July 6, 2012 | Permalink
  3. I am also looking for this. If anyone has done this please post here. Also i think this would make a very interesting add on for Gravity forms

    Posted 11 years ago on Tuesday August 14, 2012 | Permalink
  4. David,

    For the php sdk, facebook simply sends an array of data, so it is just a matter of parsing the array.

    The easiest answer, I believe, would be to design a page template with your theme, and the gravity form resides on that page template. In the head, it queries facebook for a response. If the user is logged in and has previously authorized your application, facebook returns an array. If user logged in not auth, facebook returns an array - just none of the fields you want

    So the question is, how does GForms work for this? I know if its FB connect, you could prefill the form, and require user to submit; OR; if you want it to submit on connect, no form, you could set the page up (page template or not) that would use a javascript onLoad for the body, and document form submit to the correct gravity form id, with correct fields

    I did the latter on a custom coded Facebook php form, submit to Gform, it was a pain in the ass. It resided outside my wordpress install, so I could have a quick loading canvas page for a page tab on my facebook page.

    Posted 11 years ago on Tuesday October 2, 2012 | Permalink
  5. Actually - i didnt document submit it, gform sends data via get right? i BELIVE i just loaded all the crap via php, then did a header change to the gform submit action

    Posted 11 years ago on Tuesday October 2, 2012 | Permalink