Is it possible to send an fb notification from external website? For example, www.xxxx.com will send a notification to a certain fb user - fbconnect

For example, www.xxxx.com will send a notification to a certain fb user.
POST /{recipient_userid}/notifications?
access_token= … &
href= … &
template=#[596824621] started a game with you, play now!

Edit:
Requests are only available for games on Facebook.com or iOS and Android apps. Accepting a request from a game will direct the person to the Canvas Page URL of the app that sent the Request. For native mobile apps, accepting the request will direct the person to the app on their device if installed or to the appropriate location (Apple App Store or Google Play) to download the app otherwise
https://developers.facebook.com/docs/reference/dialogs/requests/

I figured out that sending notifications to facebook users via external website is not possible, but sending messages with the permission of user and posting to wall will do.

Related

Ways to make a dialogflow chatbot redirect to some website for a particular intent

If a user asks a question to my chatbot eg.what is coding?....then my chatbot should direct it to a wikipedia page about coding.So how can I do it in dialogflow?More specifically if I integrate my dialogflow chatbot with a website then for a particular question....it should direct it to a particular page of my website.Can anyone tell me how to do it?
It depends on the Channel you are using.
In most channels you can not force direct the user out of the chat.
You will have to send them a LINK ( most platforms support that ) or you can send them a button or quick reply etc (Depending on the Channel you are using) where the user clicks to open up a webview inside the chat or a browser window

Saving and loading facebook instant game multiplayer data of the game

1) Is setting up webhook necessary to save json data of a context shared between players of context?
2) How to validate callback url for webhook on facebook developer console? My game is already live on facebook for single player. (No local testing)
3) Can I use my own personal https url to setup webhook?
No, you do not need to use the webhook to save context data. You can use XMLHttpRequest, fetch or a JavaScript SDK for a service like Playfab or Firebase to store data. In fact, we wouldn't even recommend you use a webhook for saving data because if the player turns off messages from your bot you will not receive any webhook callbacks.
You can validate a callback URL using the developer dashboard, including the "Show Recent Errors" button, which is really useful for spotting any issues. You can also get more information from the Webhooks item on the left nav.
You may need to clarify what you mean by "your own personal https url". As long as Facebook can hit your webhook URL, everything will work. You cannot, for example use a localhost URL.

How to create a chatbot with facebook messenger like templates

I'm trying to create a chatbot for use in a chat app I've created. I basically need the chatbot to send me replies that have message templates like in facebook messenger. For example, If I type in "what's the weather like", I want my chatbot's reply to look like facebook's media template, linked here: Media Template
Does anyone have any tutorials or links I can follow?
Thank you in advance.
Cheers!
Usavaully work flow of chat application as follows,
Message providers(Facebook, twitter,slack etc..) receives messages from user
Message is sent to the configured endpoint(your webserver) according to the settings provided in the face book developer page reference
In the webserver you classify the intent prepares the response according to the request and sends the responses back.
So in the 3rd point web server you give responses based on the platform you are responding to reference, since in your case it's your own platform you need to design your own UI based on the response format or you can use some predefined html templates.
I hope answer gave some direction to work on.

Simplest way to send a notification to Evernote web application?

I'm not even sure if this is possible/options to look into.
I wrote an email-based sync where a user has a note in Evernote and when the user sends an email from Evernote to a website endpoint, I want the end point to notify the user that their request was received on Evernote.
I don't know if this is even possible. I just want to say "email received" sort of thing.
Closest thing I could think of is having an evernote with the contents updated (sync log). It's kind of like a webhook for Slack but looking for Evernote.
To clarify: The user is currently on Evernote (website) looking at their note, they send the email (from here to share the current note) I want a popup/notification of some sort to say "Email received" I don't know if there is a system for this or not. I don't think so.
Edit: In the meantime I just setup a slack webhook notification
There's no way to programmatically cause a notification to occur/appear within an Evernote client application. You could implement something that's external to Evernote using your own notification mechanism like push notification on mobile, SignalR, etc. but that would be dependent on the user's environment.

An issue when authorizing Facebook pages in Bot Framework

The issue originates from the bot framework itself, when I add a new Facebook channel for the first time everything works as expected, what I am trying to do is connecting multiple FB pages to the same bot, I read somewhere that you can do this by re-entering the page info and clicking "resubmit", the problem is when the "resubmit" button is clicked without first clicking "Deauthorize" first causes a problem, when I analyzed the request with the browser's inspector it seems that EnableChannelForBot method throws an error.
Also we are developing a service where users can register and link their FB pages to the bot just like ChatFuel or any other famous bot platform, the main problem is that bot framework is asking for a specific page id and access token per FB bot and you must do it manually through the bot framework dashboard, can we have an easy way to register the bot to multiple FB pages and without having to do so manually through an API or something Similar? Please work with us to provide a solution for this as soon as you can, Bot Framework is vital to our work and migrating to another SDK is going to be very costly and time-consuming.
I don't think that connecting multiple Facebook pages to the same bot is supported. Where did you read that?
Also, there is no API currently you can leverage on to register your bot/enable Facebook channel.

Resources