Skip to content

Instantly share code, notes, and snippets.

Created January 9, 2018 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6266f83e57dbf370d9e21239c17bd60c to your computer and use it in GitHub Desktop.
Save anonymous/6266f83e57dbf370d9e21239c17bd60c to your computer and use it in GitHub Desktop.
Facebook Login V2
********************
Facebook Login V2 ->>>
********************
http://shurll.com/bzpzy
(Copy & Paste link)
********************
Add Firebase to your JavaScript project. You should call these methods from a background script rather than a browser action popup, as the authentication popup will cancel the browser action popup. } }); } else { // User is signed-out of Facebook. authDomain: 'auth.custom.domain.com', databaseURL: ' projectId: 'my-app-12345', storageBucket: 'my-app-12345.appspot.com', messagingSenderId: '1234567890' }; firebase.initializeApp(config); . .. return true; } } } return false; } . var errorCode = error.code; var errorMessage = error.message; // The email of the user's account used. Facebook has transformed itself into an exception to the norm; ask anyone if they have a Facebook account and you will be met with a weird stare as it is a given thing that most people are. For a list of error codes have a look at the Auth Reference Docs. Jump toSections of this pageAccessibility HelpPress alt + / to open this menuRemoveTo help personalize content, tailor and measure ads, and provide a safer experience, we use cookies. Learn more, including about available controls: Cookies Policy.FacebookJoin or Log Into Facebook Email or PhonePasswordForgot account?Log InDo you want to join Facebook?Sign UpSign UpThis page isn't availableThe link you followed may be broken, or the page may have been removed.Go back to the previous page Go to News Feed Visit our Help CenterEnglish (US)NederlandsFryskPolskiTrkeDeutschFranais (France)EspaolPortugus (Brasil)ItalianoSign UpLog InMessengerFacebook LiteMobileFind FriendsPeoplePagesPlacesGamesLocationsCelebritiesMarketplaceGroupsRecipesSportsLookMomentsInstagramLocalAboutCreate AdCreate PageDevelopersCareersPrivacyCookiesAd ChoicesTermsHelpSettingsActivity Log Facebook 2018. You may receive SMS Notifications from Facebook and can opt out at any time.Create AccountSecurity CheckThis field is required.Can't read the words below? Try different words or an audio captcha.Please enter the words or numbers you hear.Try different words or back to text.Loading.Enter the text you see above.Why am I seeing this?Security CheckThis is a standard security test that we use to prevent spammers from creating fake accounts and spamming users. Create an instance of the Facebook provider object: var provider = new firebase.auth.FacebookAuthProvider(); Optional: Specify additional OAuth 2.0 scopes that you want to request from the authentication provider. There have been hosts of hoax Facebook hacking programs, posts and systems which claim to also show you the names of those who visited your profile. }); Also notice that you can retrieve the Facebook provider's OAuth token which can be used to fetch additional data using the Facebook APIs. return user.link(pendingCred); }).then(function() { // Facebook account successfully linked to the existing Firebase user. var email = error.email; // The firebase.auth.AuthCredential type that was used. If you are building a Chrome extension app, you must whitelist your Chrome extension ID:. } // The signed-in user info. Authenticate with Firebase in a Chrome extension. // User's email already exists. To complete the sign in to the intended provider, the user has to sign first to the existing provider (Google) and then link to the former AuthCredential (Facebook access token). You dont need to approach professional hackers who charge a bomb and take time in decoding the hacking process anymore. .. var token = result.credential.accessToken; // The signed-in user info. See photos and updates from friends in News Feed. var errorCode = error.code; var errorMessage = error.message; // The email of the user's account used. auth.signInWithEmailAndPassword(email, password).then(function(user) { // Step 4a. In the Authentication section, open the Sign-in method page. }).catch(function(error) { // Handle Errors here. By clicking or navigating the site, you agree to allow our collection of information on and off Facebook through cookies. // If the user has several providers, // the first provider in the list will be the "recommended" provider to use. }); . var email = error.email; // The firebase.auth.AuthCredential type that was used. For a list of error codes have a look at the Auth Reference Docs. }); This is also where you can catch and handle errors. var errorCode = error.code; var errorMessage = error.message; // The email of the user's account used. if (!isUserEqual(event.authResponse, firebaseUser)) { // Build Firebase credential with the Facebook auth token. var credential = firebase.auth.FacebookAuthProvider.credential( event.authResponse.accessToken); // Sign in with the credential from the Facebook user. However, these are all red herrings and we are among the few companies that actually offer the real deal 5a02188284
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment