How do you connect twitter account to facebook account in your application? - facebook

Say someone signs up with facebook. Then he wants to tweet a place. Well, I need to connect his facebook account with the account he created using twitter.
Is it commonly done?

Usually a custom application has its own database of its native user accounts and then each native user account can be associated with external services accounts.
Say, your user can associate their Facebook account and their Twitter account with their native account in your application, and then interact with those external services alike.

Related

Prevent duplicate username from federated logins

I have Cognito setup with login supported from multiple identity providers (Cognito User Pools, Facebook, and Google). In my User Pool configuration I have email used as username. The desired functionality is to have username be unique across all identity providers. i.e. if a user logs in with Facebook and their facebook email is "user#test.com" and then they login with Google and their google email is "user#test.com", either they should not be able to login or their federated identities should be merged.
This is user management for connected devices. I don't want a user to setup a few devices while logged into Facebook, then login with Google and not be able to see their devices from their Facebook account.
I know this gets complicated since you can create a Facebook account with just a phone number.
I know there is a pre-authentication trigger in Cognito User Pool's, but it doesn't seem to be triggering when I login with a federated identity. Is there a trigger than I can use that will fire no matter which identity provider I use (User Pool, Facebook, Google)?
Thanks,

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

Can I connect to a Facebook app with my page profile?

I tried, but it always tries to redirect me to my personal account
The app belongs to me. I created it with my personal account. I would like to let companies connect to the app with their page accounts, not as people - it would be more convenient for brands that way.
To test it, I created my own page, and tried to register myself as an app user with, but it did not work.
You cannot connect to a Facebook app as a Page or through business account as for some reason Facebook doesn't allows you to connect applications with the business account or Page. You can't even like a page using the like box if you are using business account.

Facebook Login without a Facebook Account nor through a third-party app

Does anyone know of a way to use social logins without having to create an account with a social media website? For Example, I want to use Facebook's Login on my website, but I do not want to create a Facebook account nor an app just to use their login.
Far as I know it pretty much requires (facebook) an App to be created (on developer site for facebook) in order to utilized services with a website.
Unfortunately, in order to maintain a safe development environment, and to prevent the creation of spam apps, it is required that Facebook manage its developer users. This is to allow them to block apps that act maliciously, and to allow permissions to be managed on their server for the app access token. For a more detailed answer, I'll refer you to one on StackOverflow by Lix.

Authorize web app to connect to previously connected third-party services

Our dashboard web app incorporates API feeds from multiple third-party membership websites. When we're on-boarding a new user, we'd like to use FB Connect and OAuth to
verify identity of user
grant permission to our app to access FB graph data, and
determine if the user has previously approved some of those third-party services we incorporate.
We would like the user to be able to grant us permission to connect those services on behalf of the user as well, all in one OAuth session. Is this possible?
I.e. if we provide FB with a list of our services that we connect to, can we get a yes/no from FB Connect as to whether the user has pre-approved those services elsewhere using FB Connect? Then, we would provide a secondary approval page to the user saying "looks like you've already logged in to these X, Y, and Z apps which we use in our dashboard. Would you like to grant us access to those apps as well and pull them in to your dashboard?"
No, this is not a feature of the Facebook API - you'll need to use each site's Oauth flow in succession