Comments (21)
Thanks mate @wittfabian for the support and awesome library :)
from fb-messenger-php-example.
You are welcome
from fb-messenger-php-example.
Any error messanges?
from fb-messenger-php-example.
No errors. Isn't the persistent menu expected to popup when the message received is set menu just like generic message popup when the message received is generic?
from fb-messenger-php-example.
from fb-messenger-php-example.
Any Documentation on how to use persistent menu ? I want persistent menu to popup when user sends a certain string. is that possible ? how can it be achieved ?
from fb-messenger-php-example.
I thinks thats not an use Case of the persistent menu. You can use structured Message eg.
from fb-messenger-php-example.
I want structured Message with button with 6 elements. but it seems only 3 elements is possible at max. Any Suggestion on how can i achieve ?
from fb-messenger-php-example.
Ist there any documentation about this Limit?
from fb-messenger-php-example.
When i tried this in one of cases. Nothing would show up. Any idea ? but works fine for only three elements
$bot->send(new StructuredMessage($message['sender']['id'],
StructuredMessage::TYPE_BUTTON,
[
'text' => 'Choose category',
'buttons' => [
new MessageButton(MessageButton::TYPE_POSTBACK, 'First button'),
new MessageButton(MessageButton::TYPE_POSTBACK, 'Second button'),
new MessageButton(MessageButton::TYPE_POSTBACK, 'Third button'),
new MessageButton(MessageButton::TYPE_POSTBACK, 'Fourth button'),
new MessageButton(MessageButton::TYPE_POSTBACK, 'Fifth `button')`
]
]
));
from fb-messenger-php-example.
I found it in the documentation. A maximum of 3 buttons
from fb-messenger-php-example.
Have you integrated webview ?
from fb-messenger-php-example.
or quick replies ?
from fb-messenger-php-example.
quick replies => yes
from fb-messenger-php-example.
could you show me how to use ? any documentation
from fb-messenger-php-example.
You can use "Quick Replies" with most of the messenger elements.
Check:
pimax/fb-messenger-php#93
from fb-messenger-php-example.
I have updated index.php
from fb-messenger-php-example.
Standalone:
$bot->send(new QuickReply($message['sender']['id'], 'Your ad here!',
[
new QuickReplyButton(QuickReplyButton::TYPE_TEXT, 'QR button 1', 'PAYLOAD 1'),
new QuickReplyButton(QuickReplyButton::TYPE_TEXT, 'QR button 2', 'PAYLOAD 2'),
new QuickReplyButton(QuickReplyButton::TYPE_TEXT, 'QR button 3', 'PAYLOAD 3'),
]
));
from fb-messenger-php-example.
Thank You :)
from fb-messenger-php-example.
QuickReply is restricted to 11 elements
from fb-messenger-php-example.
I found it in the documentation. A maximum of 3 buttons
Have you found any solution on how to integrate more than 3 buttons?
from fb-messenger-php-example.
Related Issues (20)
- "image" text not responding with image attachment HOT 22
- Add QuickReply to objects
- Update image example
- button POSTBACK is not working HOT 4
- How to implement List Template Structured Message ? HOT 20
- Add example for TargetAudience & Tags
- Sending elements inside Structured message with data from database. HOT 5
- Guys, you have an error in your PersistentMenu example HOT 2
- Example for "chat extensions home_url"
- Example for "GetStartedButton"
- How to get Postback button value in the callback url in Facebook messenger bot? HOT 10
- Add example: default_action for MessageElement
- default: doesn't work. HOT 2
- MessageButton Questions HOT 9
- Remove title from Share--button example
- Should be check X-Hub-Signature headers
- Add example: how to add image with buttons HOT 1
- Can you show us an example how i can send a message depending by last 2-3 replies ? HOT 2
- Multiple payloads on sequence 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 fb-messenger-php-example.