Giter VIP home page Giter VIP logo

wa-cloud-api's Introduction

WhatsApp Cloud Api implementation in React Native and Node.js

A working application to send and receive WhatsApp, Messenger and Instagram messages* using Meta's Cloud Api

Inbox

Chat

Warning: This application contains JS code, use at your own risk.
* only text messages are currently implemented

Installation

Install Node.js from https://nodejs.org/en/download/current/
If you are using Windows 7 use this version https://nodejs.org/dist/v14.16.1/node-v14.16.1-x64.msi
and create an Environment variable called: NODE_SKIP_PLATFORM_CHECK and set it to 1

Open a command prompt at the folder wa-cloud-api
Install the dependencies with the command npm install (it will take a while)

Run the front

Execute npm start
Then type 'w'

Run the server

Open a command prompt at the folder Server
node server.js
Open another command prompt at the folder Server
ngrok http --region eu 3000
Open http://localhost:4040/ in your browser and copy your server URL

Configure Meta's WhatsApp Cloud API

First, you need a Facebook account :(
Go to https://developers.facebook.com/ and create an App of type Business
Click on Add Product and select WhatsApp
Go to Getting started and copy your Temporary access token and your Phone number ID to Server/server.js (you can also get a permanet token)
Go to Configuration and edit your Callback URL, add your server URL (https://???.eu.ngrok.io/webhook) and set your Verify token from Server/server.js

wa-cloud-api's People

Contributors

ttfh avatar

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.