How to get TS typings for messenger bot? - chatbot

I cannot seem to find any examples or libraries from Facebook that offer Typescript typings for messenger platform.
Can someone kindly suggest how typescript type checking can be integrated in messenger bot?

Related

Can I build a bot using Facebook Messenger Platform to integrate on my own website or does it work only on FB Messenger having a FB page?

I am new to chat bot. I want to ask if I can build a bot using Facebook Messenger Platform to integrate on my own website or does it work only on FB Messenger having a FB page?
Like api.ai can be integrated to different platform, so can bot build Messenger platform be integrated to different platform? If yes can you please share the link for tutorial.
Yes you can integrate your chatbot built on FB Messenger Platform on your own website :)
Integrating your FB Messenger chatbot onto your website
With FB's latest Messenger update, it is now possible to embed your chatbot onto your website so that users can interact with your chatbot while browsing your website. The full feature & implementation details can be found in FB's documentation here. Here's a nice tutorial on how to do it here too. However, you still need to have a FB page linked to your FB Messenger bot to do so because bots are mainly used for talking to users via your FB page.
Can FB Messenger Platform be integrated to a different platform?
Well, no, but various other platforms such as API.ai (DialogFlow) or WIT.ai have integrations with other messenger platforms such as Telegram, Slack, Kik, etc.
I hope this helps! I recommend API.ai (DialogFlow) as a platform for making chatbots since it's relatively easy to learn and has good documentation. If you want a quick way to prototype a chatbot, then I recommend using ChatFuel, before making one from scratch :)

IVR support on facebook messenger

I am working on facebook bot. Is IVR or TTS possible on messenger through bot by using any API or other things?
I searched for it but was unable to find anything.
Thanks in advance.
It is possible, you can check example project for details:
https://github.com/hungtraan/FacebookBot

How to use Facebook messenger api in react native

I am using react-native-fbsdk to use Facebook APIs in my react native project. I am able to implement login/share/logout functionalities using this but till now haven't found any way to use Facebook messenger APIs.
Is there any way I can integrate FB messenger API in a react native project using this library?
Thanks.
Here is how to do it with React Native's Linking:
Linking.openURL(`fb-messenger://share?link=${sharingUrl}`);
where sharingUrl is the link you want to attach.
Result
This will open Messenger app with the attached link and the user will be able to add a message to it and send it to his friends. (Caution: nothing will happen if the user does not have Messenger installed.)
Prefilling a message seems impossible however.
See the doc

Facebook social reading plugin for Wordpress?

As you know, a lot of bigger news websites have intorduced "social readers" for Facebook (e.g. https://apps.facebook.com/wpsocialreader/), which log what the user has read into the activity stream ("Michael read..."). Is it possible to integrate similar functionality into a Wordpress blog? Are the relevant API's open? Are there any plugins available? Thanks.
UPD: http://trac.ahwebdev.fr/projects/facebook-awd
The plugin seems to do the trick. Will have to try it out!
Yep, all of the APIs required to recreate the WashPo Reader or the Guardian reader etc are open, so it shouldn't be an issue to implement it for Wordpress.
Here's the relevant docs - https://developers.facebook.com/docs/opengraph/
i am the creator of Facebook AWD.
From now to get actions publishing working with Facebook AWD and wordpress you must buy a subplugin.
This process will take place with the v1.3 of Facebook AWD
Update: The plugin is ready here: http://facebook-awd.ahwebdev.fr/plugins/opengraph-actions/
Came across this post while searching for something related. Anyone still thinking of integrating Social read with any blog or website can simply use this plugin(For non-developers or for developers who just want to use a ready made solution)..
http://sharethis.com/publishers/get-sharenow

Facebook Plugin

Is there any plugin or way to post on my facebook wall directly from my website?
(There are plugins available for WordPress. But mine is not a blog site).
Thanks in advance
Facebook has a full REST api, so you should be able to use it from any language. If you are using PHP you could look at what the wordpress plugin is doing and then replicate that for your page. Otherwise you probably should look at the SDK information for facebooks api processes and then just call them however you need from your site.
There's a comments widget.
http://developers.facebook.com/tools.php?connect_wizard&wizard=comments