Use Facebook Graph API to disconnect a Facebook Page from a Facebook App - facebook

I have a website with a Facebook App that allows Facebook users to connect their Facebook pages to the App so that the website can use that Page in different ways.
But I cannot find a way to disconnect the Facebook Page from the App using a Facebook API (probably the Graph API?). The problem is that Facebook keeps sending webhook events as long as the Page is connected to the app.
Is there such a call?

That's done via the subscribed_apps edge on the page. Same as you can add a subscription via this, you can also remove it again.
https://developers.facebook.com/docs/graph-api/reference/page/subscribed_apps/#Deleting

Related

Allowing others to connect their Facebook Page to our App

I created a Facebook app that has a webhook for Facebook Page messages through FB Messenger. Essentially the purpose is to add a bot to our Facebook Pages. We now want to start creating Messenger bots for other business' pages.
Facebook allows us to have our app webhook subscribe to our own FB Pages, but we can't find any way to add another business' FB Page (screenshot below)
How can we make it so that our app can be installed by other businesses to their FB Pages? (so that the bot will work for their pages).
We put our app through the app review process and it was approved, but I only put in my personal information, not the business' information. Could this be a blocker?
You can subscribe pages to / unsubscribe them from your webhook via the page/subscribed_apps API endpoint.
You need to have a page admin login to your app and grant it permission to manage their pages, then you get a page access token, and with that you make the request to subscribe the page to your webhook.

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.

Link facebook messenger with facebook login on app

I have a facebook messenger bot that sends a webhook to my web app. People can login to my app via facebook login.
The first user contact is normally with my facebook bot on which they can create a profile. When they make contact I take their facebook id, name, profile pic, etc.
Users can then login with facebook to my web app to enhance their profile.
My problem is facebook uses different scoped ids for messenger and their login.
How can I recognise if a user has already been on my facebook bot if they use my web app, and vice verca.
I think it has something to do with the business mapping api: https://developers.facebook.com/docs/apps/for-business but I'm struggling to understand how it works.
I am sending a get request using:
GET /me?fields=token_for_business
But the docs do not specify the full url to use. I'm also unsure if you can use this in developer mode.
facebook provides an id-matching api
for the app and pages owned by the same business manager. More informations:
https://developers.facebook.com/docs/messenger-platform/identity/id-matching

How to make Facebook app page invisible so it doesn't reveal identify of our users to their friends?

My site has Facebook Connect to help users with registration and to do this we had to create a Facebook app. And on my Facebook app page, I noticed that it shows list of user's friends who also connected to our site using Facebook Connect. How can I take this down so that we don't reveal the identity of our users who connect to the website with Facebook Connect? In fact, I would like to make the Facebook app page invisible altogether since we don't need it. Is this possible?

Uploading photos to facebook, Facebook App or Facebook Connect?

I am working on a website that allows people to upload photos to their facebook account (as if the user manually uploaded those photos to facebook), and the uploaded photos will be hosted on facebook instead of my server. Should I develop a facebook application or use facebook connect?
When you use facebook connect, you actually create a facebook application that will make it possible to "communicate" with facebook from your website.
You should know that a facebook application runs in facebook while facebook connect gives you the possibility to link whatever you have in your website to Facebook.
Though, I'm not sure if what you want to do is doable using the Facebook connect API.