Facebook Lead Ads using webhook

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Facebook Lead Ads using webhook

Stephen Smiroldo-4
Has anyone used Facebook’s Lead Ad webhook to retrieve real-time lead data from the Facebook form to you website (a Lasso processor page accepting a POST response from a Facebook webhook?

I’m pretty far into the process to where I’m receiving a ping from the webhook whenever a lead comes in but not sure how to decode/parse the response in order to read the data.  According to the following documentation, it looks like I need to decode the POST from Facebook but not sure what parameter to use to put the value in a variable for parsing.

Retrieving Leads
https://developers.facebook.com/docs/marketing-api/guides/lead-ads/retrieving/v2.8 <https://developers.facebook.com/docs/marketing-api/guides/lead-ads/retrieving/v2.8>

Receiving real-time API updates with WebHooks
https://developers.facebook.com/docs/graph-api/webhooks <https://developers.facebook.com/docs/graph-api/webhooks>

Any ideas? I’m on Lasso 8.6.


Thanks,
Stephen


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Facebook Lead Ads using webhook

Bil Corry-3
Facebook is sending a JSON body.  You'll need the raw request body to
process the JSON data, but I don't recall how to get to it in 8.6.


- Bil

On Mon, Feb 6, 2017 at 3:04 PM, Stephen Smiroldo <[hidden email]>
wrote:

> Has anyone used Facebook’s Lead Ad webhook to retrieve real-time lead data
> from the Facebook form to you website (a Lasso processor page accepting a
> POST response from a Facebook webhook?
>
> I’m pretty far into the process to where I’m receiving a ping from the
> webhook whenever a lead comes in but not sure how to decode/parse the
> response in order to read the data.  According to the following
> documentation, it looks like I need to decode the POST from Facebook but
> not sure what parameter to use to put the value in a variable for parsing.
>
> Retrieving Leads
> https://developers.facebook.com/docs/marketing-api/guides/
> lead-ads/retrieving/v2.8 <https://developers.facebook.
> com/docs/marketing-api/guides/lead-ads/retrieving/v2.8>
>
> Receiving real-time API updates with WebHooks
> https://developers.facebook.com/docs/graph-api/webhooks <
> https://developers.facebook.com/docs/graph-api/webhooks>
>
> Any ideas? I’m on Lasso 8.6.
>
>
> Thanks,
> Stephen
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>   the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Facebook Lead Ads using webhook

stevepiercy
I'd look into the client_* tags.  client_headers and
client_postparams would be likely candidates.

Have Facebook POST whatever it does to your Lasso server, and
log that.  Then you can figure out next steps.

--steve


On 2/6/17 at 4:26 PM, [hidden email] (Bil Corry) pronounced:

>Facebook is sending a JSON body.  You'll need the raw request body to
>process the JSON data, but I don't recall how to get to it in 8.6.
>
>
>- Bil
>
>On Mon, Feb 6, 2017 at 3:04 PM, Stephen Smiroldo <[hidden email]>
>wrote:
>
>>Has anyone used Facebook’s Lead Ad webhook to retrieve real-time lead data
>>from the Facebook form to you website (a Lasso processor page accepting a
>>POST response from a Facebook webhook?
>>
>>I’m pretty far into the process to where I’m receiving a ping from the
>>webhook whenever a lead comes in but not sure how to decode/parse the
>>response in order to read the data.  According to the following
>>documentation, it looks like I need to decode the POST from Facebook but
>>not sure what parameter to use to put the value in a variable for parsing.
>>
>>Retrieving Leads
>>https://developers.facebook.com/docs/marketing-api/guides/
>>lead-ads/retrieving/v2.8 <https://developers.facebook.
>>com/docs/marketing-api/guides/lead-ads/retrieving/v2.8>
>>
>>Receiving real-time API updates with WebHooks
>>https://developers.facebook.com/docs/graph-api/webhooks <
>>https://developers.facebook.com/docs/graph-api/webhooks>
>>
>>Any ideas? I’m on Lasso 8.6.
>>
>>
>>Thanks,
>>Stephen
>>
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso [hidden email]
>>Official list archives available at http://www.lassotalk.com
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.stevepiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Loading...