/    Sign up×
Community /Pin to ProfileBookmark

Remember Users Who Login via Facebook

Hi, everyone.

What piece of data do I need to store in my database to remember a user who registered via Facebook? In other words, I’ve got Facebook login implemented (i .e. I can access your Facebook user profile), but I’d like to store information in my database and tie it to your user account (created via Facebook)

I’ve done a bunch of reading and most of the sources say I should be storing the OAuth ID in the database to use for this purpose. But I haven’t seen a single page in Facebook’s documentation that mentions anything about the OAuth ID. Now, I know Facebook has made some changes to how the login flow works, like switching to OAuth 2.0. So the sources that talk about the OAuth ID could be simply outdated. But, because I don’t know how to do this yet, I can’t tell if they’re outdated or not.

I’m just really confused because the documentation seems to jump around a lot and I’m not a web developer by nature. Most of what I’ve done is desktop or database driven. So I really just don’t know much about PHP and some of the common data flows present in web development. If anyone can help me figure this out and give me any other clarifying information on FB login, I would really appreciate it.

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @Megacannon spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...