Facebook Messenger Id - facebook

I am developing a flutter application where I want to use Facebook Messenger app for user to user chatting. I am using Facebook login+Firebase Authentication for authenticating my users. I am now rummaging through the Graph API to find a way to get the user's ID (not app-scoped, the universal one). I am going to use the Id to finally launch the messenger app as mentioned in the accepted answer of this question. So please help me find way to launch the messenger app with the link of the user's messenger ID.
If it is not possible with facebook messenger, please mention any third party popular chat application that will register + authenticate my users and help me with the chat.

Related

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

Facebook web app: How to store an ID for user recognition

My company is developing a web app, we are looking to integrate this to Facebook, basically our web app provide some reports. Now some of the clients want to show some information in Facebook. Even though, we dont have any experience developing for Facebook we opened a developer account and we selected build a web-app(We are thinking to embed our web-app in Facebook).
So our question is:
how we could store an ID of our client once he install the app in Facebook?
does Facebook store this ID and every time a visitor in our client's Facebook app enters to the app in Facebook, Facebook sends this ID to our website to recognize which client is it?
Thanks for any inside on it.
Your question is very broad. I would advise to start reading the documentation on Facebook Login to get an idea about how it works.
In general, when an user logs in using Facebook, you will receive an App Scoped User ID. That is an ID that is unique and identifies the user for your app (note: for the same user, each app gets a different ASUID). You can use this ID to keep track of all your users.

Facebook client login for windows phone 7

I want to make a simple Facebook client for WP7 and I'm looking at how I should do the login.
There's a tutorial here where the client is asked to authenticate through the browser.
I'd prefere doing the login within my application and I need more than just to 'grant acces', I need the users wall feed, friend list, messages etc.
Any idea how to do the in-app login?
I think you cannot authenticate the user directly from your app, with out the help of browser. Facebook won't allow it.
Anyway you can take the help of the Facebook SDK, which helps in the authentication process.
Refer this Blog for the implementation of the Facebook SDK for WP7
And additionally, you can get all the permissions that you need, by specifying the Extended permissions in your authentication process.
There is also the updated article from Nokia if you want to find more here

single sign on using facebook for iPhone application

I know that SSO is possible for web application, so I want to is there any possibility to implement single signon using facebook account for iPhone application i.e. if some one has account in the facebook he should be able to login in my iPhone application also using his facebook credentials.
If not facebook then which other social networking sites we can achieve SSO for iPhone application.
To get the facebook userid and other user information using new facebook graph APIs and this userid you can use to create new user in your server because this is a unique id for facebook users. You can get the sample code here.