Comments (4)
@yaliniyalu this is has been fixed in 3.0
. You can do like this
$ge = GenericElement::create('title');
$ge->setSubtitle('subtitle');
$message = GenericTemplate::create([$ge]);
$messenger->send()->message('1973204866024629', $message, [
'notification_type' => Send::NOTIFICATION_TYPE_REGULAR,
'tag' => Send::TAG_ISSUE_RESOLUTION,
]);
from messenger.
Hello,
according to the doc, all tags, except NON_PROMOTIONAL_SUBSCRIPTION, can only be used with generic model! Are you using another model ? If so, can you try with the GenericTemplate and keep me updated ?
Anyway, I have to add a check on the tags !
from messenger.
I tried this
$ge = GenericElement::create('title');
$ge->setSubtitle('subtitle');
$message = GenericTemplate::create([$ge->toArray()]);
$messenger->send()->message('1973204866024629', $message, Send::NOTIFICATION_TYPE_REGULAR, Send::TAG_ISSUE_RESOLUTION);
$request->build() in send.php gives
{
"headers": {
"Content-Type": "application/json"
},
"json": {
"messaging_type": "RESPONSE",
"recipient": {
"id": "1973204866024629"
},
"message": {
"attachment": {
"type": "template",
"payload": {
"template_type": "generic",
"elements": [
{
"title": "title",
"subtitle": "subtitle"
}
]
}
}
},
"notification_type": "REGULAR",
"tag": "ISSUE_RESOLUTION"
},
"query": {
"access_token": ""
}
}
from messenger.
Ok, forget what i say, i d'ont allow to change the value of messagingType
in message() 👎
I will fixed that in the coming day
from messenger.
Related Issues (20)
- Datatype of timezone is float HOT 2
- Subdomains considered invalid URLs HOT 4
- Add Persona API HOT 1
- Add new tag BUSINESS_PRODUCTIVITY
- Remove Guzzle in flavor of PSR-18 HOT 2
- Add support for Workplace
- Add support for persitent menus
- Error with 'seq' parameter HOT 2
- Add support of new FB Tags
- Allow sending messages with `user_ref` recipient HOT 3
- add support for callback message nlp traits and detected locales
- 3.4.1 release? HOT 3
- app_id in echo message
- On "standby" event, Postback doesn't contain payload HOT 1
- Update tag with new message identification
- Type error: Argument 1 passed to Illuminate\Cookie\Middleware\EncryptCookies::encrypt() must be an instance of Symfony\Component\HttpFoundation\Response, string given HOT 1
- Create API for Broadcast
- Parse error: syntax error, unexpected 'const' HOT 1
- Problem in object instantiation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from messenger.