Giter Site home page Giter Site logo

fbsamples / messenger-platform-samples Goto Github PK

View Code? Open in Web Editor NEW
1.7K 1.7K 2.6K 7.25 MB

Messenger Platform samples for sending and receiving messages. Walk through the Get Started with this code. https://developers.facebook.com/docs/messenger-platform/quickstart

License: Other

JavaScript 77.96% HTML 5.38% EJS 1.25% Python 5.58% Java 3.40% TypeScript 6.44%

messenger-platform-samples's People

Contributors

amuramoto avatar barbog avatar dmitryvinn avatar dmitryvinn-fb avatar donvince avatar edudutra avatar ilhan-mstf avatar jamesgpearce avatar jorgeluiso avatar parambirs avatar passy avatar peter78 avatar segeda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

messenger-platform-samples's Issues

help me

TypeError: Cannot read property 'forEach' of undefined at /root/node/app.js:95:26 at Array.forEach (native) at /root/node/app.js:90:16 at Layer.handle [as handle_request] (/root/node/node_modules/express/lib/router/layer.js:95:5) at next (/root/node/node_modules/express/lib/router/route.js:137:13) at Route.dispatch (/root/node/node_modules/express/lib/router/route.js:112:3) at Layer.handle [as handle_request] (/root/node/node_modules/express/lib/router/layer.js:95:5) at /root/node/node_modules/express/lib/router/index.js:281:22 at Function.process_params (/root/node/node_modules/express/lib/router/index.js:335:12) at next (/root/node/node_modules/express/lib/router/index.js:275:10)

Demo don't have https for default

Its hard to test the example when Facebook Webhook should be HTTPS, but this demo don't have optimization for HTTPS, so its impossible to test the initial demo.

Response type of `text/javascript`

When posting to the messages api endpoint in the callSendAPI method, it is being sent as application/json but the response type is text/javascript.

}, function (error, response, body) {

Is this the desired behaviour? I am attempting to use superagent instead of the request module to make my requests. It will not parse the response body unless the type is correct. In my case I am attempting to parse json, so it won't parse the response to body as the type isn't application/json.

Basically I'm just wondering if the type is correct. I couldn't find anywhere to Ask Questions/Report Issues on the API itself.

Can not deploy to Heroku

I'm trying to deploy the sample app on a heroku instance, but keep receiving an error when trying to do so.

:node (master) $ git push heroku master
Counting objects: 225, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (100/100), done.
Writing objects: 100% (225/225), 6.82 MiB | 4.17 MiB/s, done.
Total 225 (delta 116), reused 225 (delta 116)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Failed to detect app matching https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/nodejs.tgz buildpack
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to boiling-depths-18729.
remote:
To https://git.heroku.com/boiling-depths-18729.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/boiling-depths-18729.git'

Any assistance on pointing me in the correct direction resolve would be greatly appreciated.

Callback verification failed with the following errors: HTTP Status Code = 404

Hello guyz,
I'm trying to work on Facebook instant games. Firstly I'm trying to run the demo game "Tic Tac Toe" provided by facebook from the following link.

https://origincache.facebook.com/developers/resources/?id=tic-tac-toe.zip

When I run the client app of the project it's able to lead me to the game play scene but that's not playable due to invalid signature from backend. Then I looked through the SERVER-README.md and found instruction of enabling messenger bot for the app. I followed all the instruction provided in the url of readme file and able to create a webhook and deploy that to heroku for my app. I tried to test the webhook through my terminal and it responded successfully as shown in the tutorial even with the deployed webhook url on heroku.

Later I tried to add the webhook to my facebook app and faced a problem which solution is not being found searching through the google. In app messenger setting, when I tried to setup webhook and provided callback url and verify token of the webhook it was not verifying saying the following error.

"The URL couldn't be validated. Callback verification failed with the following errors: HTTP Status Code = 404; HTTP Message = Not Found"

Now I'm not getting what can I do to solve the error. Please let me know if anybody knows the solution for the problem or any other way to run the demo game successfully.

Thank you

make it possible to install npm from git

like this

package.json

...
  "devDependencies": {
...
    "messenger-get-started": "git://github.com/fbsamples/messenger-platform-samples.git#HASH",
...
  }
...

please :)

Webhook cURL error

Hi, I did everything as instructions(https://developers.facebook.com/docs/messenger-platform/getting-started/webhook-setup) but I keep getting this error!
What did I do wrong?

Requesting side>>>

curl -H "Content-Type:application/json" -X POST "localhost:1337/webhook" -d '{"object": "page", "entry": [{"messaging": [{"message": "TEST_MESSAGE"}]}]}'

<title>Error</title>
SyntaxError: Unexpected token # in JSON at position 0
    at JSON.parse (<anonymous>)
    at createStrictSyntaxError (C:\Users\yshvc\messenger-webhook\node_modules\body-parser\lib\types\json.js:157:10)
    at parse (C:\Users\yshvc\messenger-webhook\node_modules\body-parser\lib\types\json.js:83:15)
    at C:\Users\yshvc\messenger-webhook\node_modules\body-parser\lib\read.js:121:18
    at invokeCallback (C:\Users\yshvc\messenger-webhook\node_modules\raw-body\index.js:224:16)
    at done (C:\Users\yshvc\messenger-webhook\node_modules\raw-body\index.js:213:7)
    at IncomingMessage.onEnd (C:\Users\yshvc\messenger-webhook\node_modules\raw-body\index.js:273:7)
    at emitNone (events.js:106:13)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1056:12)
curl: (6) Couldn't resolve host 'page,' curl: (6) Couldn't resolve host 'entry' curl: (3) [globbing] bad range specification in column 2 curl: (3) [globbing] bad range specification in column 2 curl: (3) [globbing] unmatched close brace/bracket in column 13

=====================================================

Node side>>>

SyntaxError: Unexpected token # in JSON at position 0
at JSON.parse ()
at createStrictSyntaxError (C:\Users\yshvc\messenger-webhook\node_modules\body-parser\lib\types\json.js:157:10)
at parse (C:\Users\yshvc\messenger-webhook\node_modules\body-parser\lib\types\json.js:83:15)
at C:\Users\yshvc\messenger-webhook\node_modules\body-parser\lib\read.js:121:18
at invokeCallback (C:\Users\yshvc\messenger-webhook\node_modules\raw-body\index.js:224:16)
at done (C:\Users\yshvc\messenger-webhook\node_modules\raw-body\index.js:213:7)
at IncomingMessage.onEnd (C:\Users\yshvc\messenger-webhook\node_modules\raw-body\index.js:273:7)
at emitNone (events.js:106:13)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1056:12)

Debug in Local

I wonder if is possible to debug in local machine to make testing better.
I install the code in AWS Benanstalk is working Good!, but every change I need to make a deploy.

How to define button payload for generic/text/buttons replies??

function sendQuickReply(recipientId) {
  var messageData = {
    recipient: {
      id: recipientId
    },
    message: {
      text: "What's your favorite movie genre?",
      quick_replies: [
        {
          "content_type":"text",
          "title":"Action",
          "payload":"DEVELOPER_DEFINED_PAYLOAD_FOR_PICKING_ACTION"
        },
        {
          "content_type":"text",
          "title":"Comedy",
          "payload":"DEVELOPER_DEFINED_PAYLOAD_FOR_PICKING_COMEDY"
        },
        {
          "content_type":"text",
          "title":"Drama",
          "payload":"DEVELOPER_DEFINED_PAYLOAD_FOR_PICKING_DRAMA"
        }
      ]
    }
  };

  callSendAPI(messageData);
}

Failed at the [email protected] start script 'node app.js'

Hi,
When trying to run it, I have this error. Any clue?

npm start

[email protected] start /Users/TomJ/Documents/NODEJS
node app.js

Missing config values

npm ERR! Darwin 16.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node app.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the messenger-get-started package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node app.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs messenger-get-started
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls messenger-get-started
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/TomJ/Documents/NODEJS/npm-debug.log

Can't get Handover sample "take from inbox" to work

Hi,

I'm using the handover protocol sample and it's mostly working fine - I can pass to the inbox, and then the bot stops responding so the page inbox now handles the conversation. But, if I try the "take from inbox" action, it doesn't do anything because it doesn't seem to be hitting the webhook anymore (presumably because it is now pointing to the secondary app). I have put console logging in place which I can see for the "pass to inbox", and when the inbox is marked as done, but not for the take from inbox.

Any idea on what I might be doing wrong?

Thanks,
Jarrod

Account Linking Failed

I follow the steps to trigger /authorize, but I always got the facebook "Account Linking Failed" information. What environment I need to check? Thanks

Quick replies not showing properly on browser

Hello !
I don't know if this is the right place to ask but I noticed that since a few days, all quick replies on all chat bot that I tried are not displayed properly. They are shown with a tiny offset, and when several quick replies are shown, the last one is always cut in half.
Has anyone noticed that ? I don't know if the problem is related to the bots I use or to facebook ?

Again sorry if this had nothing to do here, just say it and I'll close it.

Messenger extension and webview on Android

Hi,

We followed the example shown in the blog (https://blog.messengerdevelopers.com/using-the-webview-to-create-richer-bot-to-user-interactions-ed8a789523c6) -- forked from here. We would like to use this messenger extension and the webview popup feature.

It works well on iPhone but could not get it to work on Android. On Android, it's not hitting the postback (upon returning from webview/submit button).

Should this (webview/messenger extenstion --true) work on Android?
Any help would be appreciated.

Thanks.

No matching user found Error

{ error:
   { message: '(#100) No matching user found',
      type: 'OAuthException',
    code: 100,
    fbtrace_id: 'C/BwuLFOao8' } }

How do I resolve it

Port to scala

Would you be willing to accept a port of the samples to scala ?

I would base it on either play-framework or akka-http.

Is there a way to stream a video inside chat ?

Sending video as attachemt takes ages to reach(especially if it's large).
Streaming media is an indispensable thing in todays world, what is messenger team doing to take to solve it ?

server response code 400

Upon send the request the server responds with 400. So the code cant get past

if (!error && response.statusCode == 200) {

its in the function callSendApi() line 485.

what could be the issue

Complete newbie

Hello community.

I am trying to create a bot. Using this project. My setup is as follows:

Amazon EC2 instance. I created a sub-domain.domain.com I have added the ssl certifications. I have pointed the sub-domain to the /var/www/sub-domain/ I have installed the unzip and installed the project in /var/www/sub-domain/project/ I have configured the project and correctly run it:

Node app is running on port 5000
If i access http://sub-domain.domain.com:5000 I access to the projects public index. I understand that means the port is open and the node app works.

Now when I am trying to configure in facebook my webhook I dont understand what url callbak to use. From what I understand in the configuration the server url whould be https://sub-domain.domain.com and the configuration should work. but it doesnt.

What url should I use?

messaging_postbacks not working on heroku but works on local

I have a test app connecting to my development environment which testers can send message as well as messaging_postbacks ; but for producton app deployed on heroku users can send messages are being receieved but bot server is not receiving any messaging_postbacks.
I have verified both the test and prod app have set
Selected events: messages, messaging_postbacks
what can I be doing wrong here ?

How to fetch from which platform the call is being made.

Hi I am using this sample as base for one of my Facebook bot project. I want to know whether user is communicating from his mobile browser, desktop, tablet or a messenger app on mobile. I need this information for analytics purpose of my bot.
is there any way I can get this information from request ?
PS: I am using node at the back-end to receive updates from Fb and not able to fetch above information using user-agent on request made to node server. Everything I need is there but this platform-information.

Thanks.
Baljeet Bhinder

Validation Failure

Hello. I'm new to node.js and Messenger Platform. Congrats on developing such a handy and lovely platform!

When trying out your official sample I'm running it at c9.io with node.js environment at URL https://xxx.c9users.io/webhook. I've filled in the blanks at default.json and index.html. When running with npm start, the c9 indicates the app starts correctly but Facebook always can't validate my URL.

The URL couldn't be validated. Callback verification failed with the following errors: curl_errno = 47; curl_error = Maximum (2) redirects followed; HTTP Status Code = 302; HTTP Message = Moved Temporarily

Could you please help me look into this problem?
Many thanks!

unified case for variables "id"

There are both
senderID
and
recipientId

and many other such discrepancies. Can we try mending that differentiating style / case for variables for a unified learning experience?

No metadata field received in quick_reply action

I find this code in your sample:

function sendQuickReply(recipientId) {
  ...
    message: {
      text: "What's your favorite movie genre?",
      metadata: "DEVELOPER_DEFINED_METADATA",
  ...

There is a field called "metadata" as a attribute of the message object, but when I read the offical docs, there's none.

I have tried it in my program too, and it did not work (screenshot here). Please help me figure out what is true? Your code or the documentation?

Getting down after starting the sample app.js

After starting the app.js if I make a first request to the app it's getting down,

I am using pm2 for starting node app, so in pm2 list command I can see the status of the app as errored.

npm start fails

$ sudo npm start

[email protected] start /home/abhi/dev/messenger-platform-samples/node
node app.js

module.js:328
throw err;
^

Error: Cannot find module 'config'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (/home/abhi/dev/messenger-platform-samples/node/app.js:15:12)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)

npm ERR! Linux 4.4.0-87-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node app.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the messenger-get-started package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node app.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs messenger-get-started
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls messenger-get-started
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/abhi/dev/messenger-platform-samples/node/npm-debug.log

account linking question

Can someone post this full working example of Peter's Hats please :( tried all sorts of combinations and read and reread the messenger-platform documentation https://developers.facebook.com/docs/messenger-platform/account-linking for the past 50 hours it just isn't clear how to do this. The only semi relevant thing regarding this process I could find on the vast internets was this article which didn't seem to work anymore http://espeo.eu/blog/user-permissions-messenger-bots/

Can this auth backend run on another server ? I tried running it in an express + passport on my localhost. Got a button to link the login , managed to see the window asking for permission but couldn't get rid of the window that opens.

where should i redirect the user ? is it possible to login without a webview?
// router.get('/login/facebook/callback',
// passport.authenticate('facebook', {
// successRedirect: 'server/views/closeWindow.html',
// failureRedirect: '/'
// })
// );

Quick Start app - Cannot read property '0' of undefined

Pulled down the app exactly as is - only updated the VERIFY_TOKEN and I'm getting this error for entry.messaging[0] when I send the test message from the subscription.

Logging the entry shows

{ changes: [ { field: 'messages', value: [Object] } ], 
  id: '0',                                                                                                                                         
  time: 1527210812 }

Webhook cURL Post error

Hi all, I followed these instructions to the letter (https://developers.facebook.com/docs/messenger-platform/getting-started/webhook-setup) but I keep getting this error!
What am I doing wrong?

Requesting side>>>

This works:
curl -X GET "localhost:1337/webhook?hub.verify_token=999999999999999&hub.challenge=CHALLENGE_ACCEPTED&hub.mode=subscribe"

But not this:
curl -H "Content-Type:application/json" -X POST "localhost:1337/webhook" -d '{"object": "page", "entry": [{"messaging": [{"message": "TEST_MESSAGE"}]}]}'

SyntaxError: Unexpected token o in JSON at position 1
at JSON.parse (anonymous)
at parse (C:\...\chatbot\node_modules\body-parser\lib\types\json.js:89:19) 
at C:\...\chatbot\node_modules\body-parser\lib\read.js:121:18
at invokeCallback (C:\...\chatbot\node_modules\raw-body\index.js:224:16)
at done (C:\...\chatbot\node_modules\raw-body\index.js:213:7)
at IncomingMessage.onEnd (C:\...\chatbot\node_modules\raw-body\index.js:273:7)
at emitNone (events.js:106:13)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)

Node side>>>

SyntaxError: Unexpected token o in JSON at position 1
    at JSON.parse (<anonymous>)
    at parse (C:\...\chatbot\node_modules\body-parser\lib\types\json.js:89:19)
    at C:\...\chatbot\node_modules\body-parser\lib\read.js:121:18
    at invokeCallback (C:\...\chatbot\node_modules\raw-body\index.js:224:16)
    at done (C:\...\chatbot\node_modules\raw-body\index.js:213:7)
    at IncomingMessage.onEnd (C:\...\chatbot\node_modules\raw-body\index.js:273:7)
    at emitNone (events.js:106:13)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1055:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)

issue can be reproduced when pushed up to Heroku and run in a production environment


[email protected]
[email protected]
[email protected]
[email protected]

express and body-parser installed via:
npm install express body-parser --save


same issue as:
#73
#74


Gist Github
https://gist.github.com/marketingstarz/8e8aec805adbe54e10a83e14ed9c99f7

Webhook post error

Hi, I did everything as instructions(https://developers.facebook.com/docs/messenger-platform/getting-started/webhook-setup) but I keep getting this error!
What did I do wrong?

Requesting side>>>

curl -H "Content-Type:application/json" -X POST "localhost:1337/webhook" -d '{"object": "page", "entry": [{"messaging": [{"message": "TEST_MESSAGE"}]}]}'

<title>Error</title>
SyntaxError: Unexpected token # in JSON at position 0
   at JSON.parse (<anonymous>)
   at createStrictSyntaxError (C:\Users\yshvc\messenger-webhook\node_modules\body-parser\lib\types\json.js:157:10)
   at parse (C:\Users\yshvc\messenger-webhook\node_modules\body-parser\lib\types\json.js:83:15)
   at C:\Users\yshvc\messenger-webhook\node_modules\body-parser\lib\read.js:121:18
   at invokeCallback (C:\Users\yshvc\messenger-webhook\node_modules\raw-body\index.js:224:16)
   at done (C:\Users\yshvc\messenger-webhook\node_modules\raw-body\index.js:213:7)
   at IncomingMessage.onEnd (C:\Users\yshvc\messenger-webhook\node_modules\raw-body\index.js:273:7)
   at emitNone (events.js:106:13)
   at IncomingMessage.emit (events.js:208:7)
   at endReadableNT (_stream_readable.js:1056:12)
curl: (6) Couldn't resolve host 'page,' curl: (6) Couldn't resolve host 'entry' curl: (3) [globbing] bad range specification in column 2 curl: (3) [globbing] bad range specification in column 2 curl: (3) [globbing] unmatched close brace/bracket in column 13

=====================================================

Node side>>>

SyntaxError: Unexpected token # in JSON at position 0
at JSON.parse ()
at createStrictSyntaxError (C:\Users\yshvc\messenger-webhook\node_modules\body-parser\lib\types\json.js:157:10)
at parse (C:\Users\yshvc\messenger-webhook\node_modules\body-parser\lib\types\json.js:83:15)
at C:\Users\yshvc\messenger-webhook\node_modules\body-parser\lib\read.js:121:18
at invokeCallback (C:\Users\yshvc\messenger-webhook\node_modules\raw-body\index.js:224:16)
at done (C:\Users\yshvc\messenger-webhook\node_modules\raw-body\index.js:213:7)
at IncomingMessage.onEnd (C:\Users\yshvc\messenger-webhook\node_modules\raw-body\index.js:273:7)
at emitNone (events.js:106:13)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1056:12)

Unable to reach ec2 ip

I have created a webhook for messenger, and deployed to an ec2 instance, as outlined in:https://developers.facebook.com/docs/messenger-platform/getting-started/webhook-setup

While the below commands work with localhost, it doesn't when I try replacing localhost with the public ip of the ec2 instance.It says it refused to connect.

curl -X GET "localhost:1337/webhook?hub.verify_token=<YOUR_VERIFY_TOKEN>&hub.challenge=CHALLENGE_ACCEPTED&hub.mode=subscribe"

curl -H "Content-Type: application/json" -X POST "localhost:1337/webhook" -d '{"object": "page", "entry": [{"messaging": [{"message": "TEST_MESSAGE"}]}]}'

What am I missing here?

MSBOT Luis issue.

How to communication work flow making on luis intends, entities,prebuild entities through?And using another words so that time communication work flow is not distracted?

Stop FB app from trying to send message to server

Hi. My problem is that I need to stop facebook app from trying to send message data to my server.

Is there any ways to notify facebook app that "I don't want to process that message, please don't trying to send me that again and again?"

How can I do this in verifyRequestSignature function? I'm thinking of sending a status code to facebook but I can't figure out what to send.

Thanks in advance!

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.