Create an FB user programmatically - facebook

Is there a way to register a new user into the FB through an SDK or an API. I saw there is a way to create test users. My use case is I want to create FB account for my application users in case they don't want one.

I found that this is not possible and if at all needed one can create test users in FB.

Related

facebook application for login and messenger same ids?

I am building a facebook messenger bot. And the bot is giving user ids. But it is not clear to me if the messenger ids are the same ids that would be returned if I use the same app and add to it a login feature. Because we already have an app and has a login feature, now we need to build a facebook bot and identify the already existing users in our db that are using the bot.
I have read facebook tutorial about linking 2 different applications to the same business to get consistent ids. But what if I use that same application to login users AND for messengers (by using the add products to the application, and so having one application, one app id) would that work? Would I be getting the same user ids?
PS: I would test myself but I am in an awkward position where the page/database/login app owner is a different person, and they are not big on sharing data, and I am supposed to blindly write a messenger code that is supposed to work when they deploy it.
All help is appreciated, thank you.
You need to use Facebook's ID Matching APIs for this purpose:
Here is the details: https://developers.facebook.com/docs/messenger-platform/identity/id-matching

Creating new Wordpress users with Facebook API

I'm trying to allow new users to register for my Wordpress site using their Facebook account. I know how to create a new user manually, but I'm not sure how to handle situations in which a user has already registered for the site with an email address that's different from their facebook account.
I need to create an official WP user, but I don't want pre-existing users to end up with two different acccounts (if their Facebook email doesn't match their pre-existing email). I'm not sure if there is a way to assign multiple emails to one account. Even if there is, I suspect this will be problematic.
What's the best way to handle this?
In case anyone cares, I added a meta field to the new user when the user is created. This is easy to do with update_user_meta(). This meta field holds the user's facebook id, so I can check to see if it already exists every time I create a new user. Also easily done with get_users().

Can I add profile data to a facebook test user?

I have a facebook application that requires user data (specifically location). I am trying to use the test user api but I can't figure out how to add additional info to my test users besides through logging into fb and changing it on the page. Is there a way to do this through the api either through initialization or by using an api call to update a user?
Someone posted this question here, but there is no answer yet.
Today I exactly ran into the same problem. I have an application that uses the location information of facebook users and now I'm searching for a way to automate the creation of these users for testing purpose.
You can now log in as a test user and update any profile information the same as a normal user within your app settings. However, you cannot interact with other users or 'like' pages, etc.
Section: Apps > Edit App > Developer Roles
URL: https://developers.facebook.com/apps/[APP_ID_HERE]/roles?ref=nav
Facebook doesn't have any graph api's to update profile information besides their current status. This includes test users. You can only set the name, password, and email when you create the user too unfortunately.

Managing multiple login schema for site - need advice

I want to set up my site to allow people to sign in using a facebook account. But in the near future I would also want to allow a provision to allow people to sign up using twitter, linkedin, even their open id accounts if they have one. However I need to set up my system so that a user may be able to login using whatever way he wishes and yet be able to maintain all his logins with his one account.
I have a users table which has the basic details:
USERS:
ID|NAME|EMAIL|PASSWORD
And think I should set up a logins table in this case like:
USERS_LOGINS
USER_ID|LOGIN_TYPE|LOGIN_ID
like in the second table if he signs up using facebook the Login type would read Facebook and id would be his fb id and so forth.
Is there any kind of service that already does this for you or any open source code I can use? My application is being built on the zend framework
Thanks
You might want to check out Janrain Engage. It will probably be the fastest and easiest way to support multiple login types.

Is it possible to create a Facebook page using their API?

Our client is wanting to have their application actually create new pages on behalf of a user. I've found a couple of workarounds for posting items to pages that already exist, but nothing for creating new pages (although the documentation on Facebook pages is pretty sparse). Any suggestions?
your APP need Standard Access permission from Facebook. Once you have this permission you can performance this action using /{user_id}/accounts, to create a new page under this user. This is my way to create new pages, and It works.
Yes, but you will need to first get Standard access to the Facebook Marketing API.