I use Facebook page like a bot, It works fine but I noticed that messages from the bot doesn't send like notifications on mobile. I found bot that I receive notifications from. How to configure it on my bots? Any suggestions what should I check?
We use bot framework and I found that we didn't add field to message for facebook. After adding this field notification begun to show
message.channelData = { notification_type: 'REGULAR' };
Related
We are running a chatbot based on the Facebook Messenger Platform. To introduce the bot to new users we have enabled the get started button: https://developers.facebook.com/docs/messenger-platform/discovery/welcome-screen#set_postback
Everything works fine from within the messenger. After starting a conversation our application receives a messaging_postbacks event. Trying the same from the customer chat plugin triggers nothing at all. According to the documentation this should work though: https://developers.facebook.com/docs/messenger-platform/discovery/customer-chat-plugin#steps
If a new conversation is started via the plugin, and your bot has set
up the get started button, we will send a messaging_postbacks webhook
event to your webhook when the user clicks the get started button.
Do we miss something? Is there something else we have to do? Is this a bug?
If you are not getting any postback, you can check if you white-listed your domain where your customer chat plugin is added.
Also, you can use messaging_referrals for old users.
I'm developing a bot for FB Messenger and want to set a greeting text for the first time a user interacts with the bot.
I followed what the docs say on setting the greeting text. Now I would like to test it and view the greeting message. However, I am stuck because I have already sent the bot messages and hence am not able to view the bot as a new user.
How is it possible to viewing the greeting message UI as if you were a new user?
Unfortunately there is no "official" way to see the greeting message UI as if you were a new user.
But, a workaround for this is to delete the conversation (from your messenger application or from Facebook's chat) and reinitiate it.
I'm trying to send a invite to my friends who doesn't use my app in facebook, so, I used FB.apprequets function to do. My design is to show the recipient {my custom message}. But request that the recipient received is always "GAME NAME: FRIEND NAME sent you a request".
Is there ways to change that message?
Also in Facebook reference, they say "If a recipient didn't install the game, he will receive invite message like Anita invited you to play Friend Smash!". But it doesn't work.
A custom message is not shown in the notification jewel.
It will only show up if the user views their notifications under https://www.facebook.com/games/activity
This is by design, and nothing you can change.
Hey i was wondering if you got the invite to work? Because currently right now my game sends app requests, but only to people who have installed my game can see the app invite/request in the notifications panel. Other than that, they can't see the app request if they have never installed the game.
I've noticed that some Facebook apps, like BranchOut, have customized notifications messages. When an app request is sent and appears in the top left notification center the text on the notification is something they seem to control on their own, instead of the default "Name sent you a request".
From what I find the the documentation this isn't possible. Custom messages are only shown for users already using the app, otherwise you get Facebooks default invite message.
Does anyone know how they are doing this? Do they simply have a deal with Facebook, or are they sending something other than an App Request?
Just in case someone else finds this question, it appears you can no longer control this message. There are some stuff floating around on other questions but none of them work anymore.
According to the docs, only whitelisted apps are allowed to edit the app request message that shows in the notification itself.
You can send custom notifications with the Notifications API:
https://developers.facebook.com/docs/concepts/notifications/
These can only be sent to users who already have the app installed.
If you wish to invite someone to the app then you must use apprequest which doesn't allow you to customise the message.
I am trying to create an application that will basically be a Linux command line messenger app just for Facebook chat. When you connect to facebook chat using the XMPProtocol, you can send instant messages to all of your friends but you can only see the messages from the friends that appear online. If an offline friend sends you a message, you do not see it. I have tested this with various chat programs (like pidgin) that are using XMPP to connect to facebook chat.
There is an iPhone app called "Messenger" that allows you to send and receive instant messages even when your friends appear to be offline. How is this possible? Do you have to use some other protocol? I tried making a research about this, and while there were many references about XMPP basically having this limit, there was no reference about how you solve this problem. I'd appreciate any clue regarding the direction I should look (may that be just the name of a protocol, an open source project that has this feature etc).
chat and inbox are two faces of the same Facebook backend ...so i mean you can read message sent by your Facebook friends by Graph Api http GET as this ... https://graph.facebook.com/me/inbox?access_token=xxxxxx