How to change end point url in ibm watson with facebook chat bot - ibm-cloud

The watsonplatform.net endpoint URL is retired. Update your code to use the specific watson.cloud.ibm.com URL for your service.
I am getting the above error in my facebook chat bot.
I have created new API service credentials as per this link
https://cloud.ibm.com/docs/watson?topic=watson-endpoint-change
and added it to ibm cloud.
https://website.region.mybluemix.net/
getting 404 for this.
Where should the newly created api endpoint be updated for facebook chat bot to work ?

Did you look at the Watson Assistant integrations topic that is linked to from the end of that endpoint change topic?
https://cloud.ibm.com/docs/assistant?topic=assistant-release-notes#6April2021
There is some information about facebook,
For a Facebook Messenger integration that is over 7 months old, make sure the Callback URL is using the proper endpoint.
with more details.

Related

Rasa integration with instagram

I am trying to integrate rasa with instagram. I am able to connect rasa with facebook. On the same line facebook also give instagram setting.
I tried to search some document for rasa with instagram. Is anyone able to connect, Please Help.
Steps I followed. (Tried to follow same step performed for facebook messenger)
Created app on facebook developer and added messenger setup in the same.
I have created instagram business account and connected to facebook
Created facebook page linked with same instagram accound.
In the app under messenger in instagram settings (created on facebook developer) added facebook page created above and PAGE ACCESS TOKEN generated.
APP SECRETE PAGE ACCESS TOKEN and VERIFY TOKEN added in rasa's credential.yml under facebook. Rasa server started with above credential.ymlfile
rasa run --credentials credentials.yml
Added webhook URL in facebook APP configuration
All subscription added (for POC purpose added all)
Is any other steps I should follow. Not sure it is possible or not.
Instagram is not a channel currently supported by Rasa.
I would recommend creating a custom channel connector by starting with the Facebook Messenger channel connector as either the base class or as a template of how to get started.
Adding a link to the Instagram Messaging API docs too for more resources in case you are not already familiar with this.
As I searched through RASA FROUME and especially in tutorial part there is a way to do this.
Read this link https://forum.rasa.com/t/rasa-chatbot-on-instagram/51762
in here is completely described how to connect your rasa chatbot to Instagram and chat with
hope it helps

Automatically subscribe pages to messenger webhook

I am working on a messenger platform that uses a messenger webhook to receive messages, and the Graph API to send messages. I currently need to go into my app settings and choose to subscribe pages that I already own.
I am wondering how I can subscribe pages that I don't own to my webhook. Is this possible if I have the Page Access Token? I can build an OAuth2 flow to get the Page Access Token, but I don't see what to do with it once I have it.
Any help is appreciated.
This can be achieved by making a POST call to /{page-id}/subscribed_apps endpoint with your Page Access Token.
API reference docs are at https://developers.facebook.com/docs/graph-api/reference/page/subscribed_apps/

How to make a messenger chat bot without a facebook app and webhook?

I went through the documentation for creating a chatbot for messenger platform.
All I find there, I need a server, which in the case used as a service for the Facebook platform.
The server also validates the webhook from facebook app.
Now I see, for a chatbot, I need a facebook app, webhook server and definitely a facebook page.
Then I find an application Flow XO, where I only put the page name and the bot is ready.
My question is, how they(flow.xo) can communicate facebook page without a Facebook app(appId, appSecret) and webHook.
My question is, how they can communicate facebook page without a Facebook app(appId, appSecret) and webHook.
They can’t.
They use their server and their app to communicate with the API, on behalf of the users that grant them access to their pages, by providing the necessary permissions when they log in to that app.
Facebook allows to create a Facebook App which integrates multiple chatbots. At Amio, we ask you for permission using Facebook OAuth. When you give us these permissions we send and receive message on your behalf. This allows you to create a chatbot using Amio API without need of creating a Facebook App.
Facebook Page is always needed as this is the entry point of users interacting with your bot. You can check Amio documentation for more detail.

Facebook webhook for pages not sending info to server

I'm trying to integrate facebook with my application.
I set up a server, webhook subscription went well (subscribed to fields: feed, conversation and messages), callback url is fine, test messages from app dashboard are coming to my server.
Then I have added my fb page to my fb app via graph api explorer and want to test creating posts. I created a post in two ways: via graph api explorer and via fb page. Anyway, no info is coming to my server.
I tested it while app is in development mode and in live mode.
What is wrong with my thinking? Any and all information will be appreciated.
=================================================================
CLOSING
My bad. I didn't noticed that facebook needs to review my app in order to start working

Connecting third party Facebook page via messenger api

I have an application that uses the Facebook messenger api to send and receive messages through a Facebook page. This works great. Now I need to be able to have a user in my application link their page so that messages sent to their page will send webhooks to our endpoint, and also give us the ability to send messages through that page using an auth_token.
Is there any way to do this via api, or will each user have to manually create a Facebook app, generate an auth_token for their page, and set the webhooks url to our endpoint? I've read about messenger account linking but I don't think it's quite what I need, as I'm not just looking to request additional profile information.
After looking a bit deeper, I found that in order to do this you must perform an OAuth flow to get an auth_token for the user, then use the graph api to get an auth_token for the desired user's page. Then with the page auth_token you can make a POST request to the subscribed_apps endpoint, which will then add the page to the app's webhook events.