Giter Site home page Giter Site logo

Comments (21)

jnepal avatar jnepal commented on June 25, 2024 1

Thanks mate @wittfabian for the support and awesome library :)

from fb-messenger-php-example.

wittfabian avatar wittfabian commented on June 25, 2024 1

You are welcome

from fb-messenger-php-example.

wittfabian avatar wittfabian commented on June 25, 2024

Any error messanges?

from fb-messenger-php-example.

jnepal avatar jnepal commented on June 25, 2024

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.

wittfabian avatar wittfabian commented on June 25, 2024

Example:
https://venturebeat.com/2017/03/02/facebook-messenger-now-offers-a-more-dynamic-persistent-menu-for-bot-developers/

from fb-messenger-php-example.

jnepal avatar jnepal commented on June 25, 2024

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.

wittfabian avatar wittfabian commented on June 25, 2024

I thinks thats not an use Case of the persistent menu. You can use structured Message eg.

from fb-messenger-php-example.

jnepal avatar jnepal commented on June 25, 2024

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.

wittfabian avatar wittfabian commented on June 25, 2024

Ist there any documentation about this Limit?

from fb-messenger-php-example.

jnepal avatar jnepal commented on June 25, 2024

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.

wittfabian avatar wittfabian commented on June 25, 2024

I found it in the documentation. A maximum of 3 buttons

from fb-messenger-php-example.

jnepal avatar jnepal commented on June 25, 2024

Have you integrated webview ?

from fb-messenger-php-example.

jnepal avatar jnepal commented on June 25, 2024

or quick replies ?

from fb-messenger-php-example.

wittfabian avatar wittfabian commented on June 25, 2024

quick replies => yes

from fb-messenger-php-example.

jnepal avatar jnepal commented on June 25, 2024

could you show me how to use ? any documentation

from fb-messenger-php-example.

wittfabian avatar wittfabian commented on June 25, 2024

You can use "Quick Replies" with most of the messenger elements.
Check:
pimax/fb-messenger-php#93

from fb-messenger-php-example.

wittfabian avatar wittfabian commented on June 25, 2024

I have updated index.php

from fb-messenger-php-example.

wittfabian avatar wittfabian commented on June 25, 2024

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.

jnepal avatar jnepal commented on June 25, 2024

Thank You :)

from fb-messenger-php-example.

wittfabian avatar wittfabian commented on June 25, 2024

QuickReply is restricted to 11 elements

from fb-messenger-php-example.

jbshrestha avatar jbshrestha commented on June 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.