Giter VIP home page Giter VIP logo

Comments (13)

bitcoinvsalts avatar bitcoinvsalts commented on July 18, 2024

any update on this?

from botly.

miki2826 avatar miki2826 commented on July 18, 2024

It seems to be working for me:
img_1035

@XavierColombel Are you getting any error in the callback?

from botly.

bitcoinvsalts avatar bitcoinvsalts commented on July 18, 2024

@miki2826 can you share your code?

from botly.

miki2826 avatar miki2826 commented on July 18, 2024

@jsappme
I copy pasted the same code provided here and added it to the example.

from botly.

bitcoinvsalts avatar bitcoinvsalts commented on July 18, 2024

here is my code:

bot.setGreetingText({
    pageId: config.facebook.pageId,
    "greeting":[
        {
        "locale":"default",
        "text":"Hello!"
        }, {
        "locale":"en_us",
        "text":"Timeless apparel for the masses."
        }
    ]
  }, (err, body) => {
  console.log("GREETING: " + JSON.stringify(err))
  console.log("GREETING: " + JSON.stringify(body))
})

Result:
GREETING null
GREETING {"result":"success"}

But no greeting shown

from botly.

miki2826 avatar miki2826 commented on July 18, 2024

The greeting is shown only for new conversations. Try deleting your current conversation and starting a new one.

from botly.

bitcoinvsalts avatar bitcoinvsalts commented on July 18, 2024

I did and nothing

from botly.

XavierColombel avatar XavierColombel commented on July 18, 2024

Here is my code and, even after deleting conversations, nothing shows.

botly.setGreetingText({
    pageId: fb_page_id,
    "greeting":[
        {
            "locale":"default",
            "text":"Hello {{user_first_name}}!"
        }
    ]}, (err, body) => {
        console.log("greeting", body);
});

It sends me: greeting { result: 'success' }

from botly.

miki2826 avatar miki2826 commented on July 18, 2024

Are you trying it on desktop or on mobile?
I did encounter a few times where Facebook didn't show the greetings in desktop but did in mobile.

from botly.

XavierColombel avatar XavierColombel commented on July 18, 2024

Mobile

from botly.

miki2826 avatar miki2826 commented on July 18, 2024

No idea...
If there was an issue with the structure Facebook would have returned an error.
Also, same code worked for me.

from botly.

XavierColombel avatar XavierColombel commented on July 18, 2024

Weird. 😓

from botly.

XavierColombel avatar XavierColombel commented on July 18, 2024

I just changed the callback URL (ngrok) and it works now. Really weird.

from botly.

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.