Q&A

How to show add bot page?

Hi,

I'm implementing a Line LIFF app, and connected my Line Bot to this liff app via Linked OA options in Line Login's Basic settings console.

And in my liff app, when a user wants to receive some notification messages from my liff app, but found that the user hasn't add my bot as friend, or added but blocked, I'd like to present a page to user which can let user add or unblock the Bot. Redirect user to login page again would be also fine.

Is there anyway to do this?

Thanks a lot!

  • 0
  • 1
  • 1523
  • twitter facebook

How about making friend judgment with liff.getFriendship() and accessing LineBot's add friend URL with liff.openWindow({ url: "https://lin.ee/YOUR_LINEBOT_ADD_FRIEND_URL", external: true })?

  • 1

Similar posts

    No similar posts

Are you sure? question.vm