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 12 years ago on Tuesday October 2, 2012 |
Permalink