Messenger m.me parameter not received on webhook - facebook-messenger

I'm trying to pass parameter via m.me link but for some reason it doesn't work. The webhook I get from the server doesn't contains the "referral" field.
I tried to re-subscribe to the web hook but it didn't help.
A video with the full flow of sending the parameters and the webhook response - http://g.recordit.co/XShDj1Rx29.gif

It turned out that if the page is unpublished the referral field parameters are not passed in the webhook.
Publishing the page solved the problem

Related

Post request to logic app from action group

I am trying to send an email alert when certain conditions are met by creating an alert rule in Azure monitor. For this, I also created an action group which tells what action to take when trigger conditions are met. In logic app I am using dynamic content which will come through POST http request, but in action group on azure portal I don't see any option to populate those parameters for POST request. Can anybody help me how to make a post request with request parameters to logic app in Azure portal?
There is no need to send parameters from Action group to logic app. When an action group is tested or the condition satisfied, automatically details will come in Http post request. Using expressions, you can retrieve details from Http post request to use in next action.
I have reproduced issue from my side. Below are steps I followed,
Created Action group in Azure monitor and added action type as Logic App.
Created logic app as shown below,
In Send Email action, I have used dynamic content from Http request trigger as shown below,
When I test action group, It triggered logic app and run details are shown below,
Output of Http trigger:
Send email Action:
5. As You can see in above picture, I am not getting values in Send email action.
So tried with writing expression instead of using dynamic content to get data from http trigger as shown below,
triggerbody()?['data']?['essentials']?['monitorCondition']
triggerbody()?['data']?['essentials']?['fireDateTime']
7. Tested logic app again and getting values as shown below,
Refer to this MS Doc for more information

Gmail API "Fields Mask" editor

Where is the field mask editor for making requests to Gmail API? is it removed? I found some questions related to this but seems the UI is not there anymore:
Google API Explorer: Where is the "fields" parameter editor?
GMail API Users.threads.list Missing "Messages" Field
I need to make a partial response that only return subject on the headers and the first body data on parts. With request format=full
Does anyone know where to find the UI editor or how to do this?
thank you!

how to implemente IPN PAYPAL with REACTJS/LARAVEL

I need some help with PayPal notification integration (react/laravel).
I need to receive notification to my backend every time a client checkout with PayPal successfully.
Is there any way to implement this?
IPN is very old and nearly deprecated, there is no reason to use it with the current PayPal Checkout.
To implement the current PayPal Checkout, follow that guide and make two routes (url paths) on your server, one for 'Create Order' and one for 'Capture Order'. You can use the Checkout-PHP-SDK for the routes' API calls to PayPal, or your own HTTPS implementation of first getting an access token and then doing the call. Both of these routes should return/output only JSON data (no HTML or text). Inside the 2nd route, when the capture API is successful you should verify the amount was correct and store its resulting payment details in your database (particularly purchase_units[0].payments.captures[0].id, which is the PayPal transaction ID) and perform any necessary business logic (such as sending confirmation emails or reserving product) immediately before forwarding your return JSON to the frontend caller. In the event of an error forward the JSON details of it as well, since the frontend must handle such cases.
Pair those 2 routes with this frontend approval flow: https://developer.paypal.com/demo/checkout/#/pattern/server . (If you need to send any additional data from the client to the server, such as an items array or selected options, add a body parameter to the fetch with a value that is a JSON string or object)
Do not use the deprecated PayPal-PHP-SDK, which is for the deprecated v1/payments API

How to include guests and notifications creating a new event in Google Calendar via URL

How to include guests and notifications as "GET" parameters when creating a new event in Google Calendar via URL (i.g. https://www.google.com/calendar/render?action=TEMPLATE&text=test&details=this+is+a+test&location=Italy&dates=20210119T165500Z%2F20210120T165500Z )?
Thanks
When creating a new event you want to use the method Events.insert which should be requested via POST request to:
POST https://www.googleapis.com/calendar/v3/calendars/calendarId/events
It takes several query parameters, but the Event resource (where the attendees are sent) should be passed as the body of the request. Not in the URL.

Messenger ref parameter is not passed to dialogflow

I'm trying to connect messenger bot and dialogflow.
The idea is - when you click on the button, service is redirecting you to the me link
(example: http://m.me/2010070995927131?ref=initial_message_with_param)
then dialoglflow receives initial_message_with_param as message and fullfilment can generate the response.
Sending messages works at all but unfortunately, ref param doesn't.
Do you have any ideas why ref param is ignored on Dialogflow side?
Been few months, but i just came across here.
Under the "Edit Page Subscription Fields" in Messaging > Webhook in Facebook developers, you need to enable messaging_referrals to receive referral payload calls.

Resources