facebook-authentication

New Firebase Facebook login

旧城冷巷雨未停 提交于 2020-01-01 05:14:32
问题 I'm trying to make a Facebook login with the new Firebase platform. this is the code for the facebook login let facebookLogin = FBSDKLoginManager() facebookLogin.logInWithReadPermissions(["email"], fromViewController: self) { (result, error) -> Void in if error != nil { print("error is \(error)") } else { let accessToken = FBSDKAccessToken.currentAccessToken().tokenString let credential = FIRFacebookAuthProvider.credentialWithAccessToken(accessToken) AUTH?.signInWithCredential(credential,

PHP SDK 3.1.1 getUser() sometimes return 0

给你一囗甜甜゛ 提交于 2019-12-29 06:48:08
问题 This is driving me crazy >=( $facebook->getUser() works well sometimes, but sometimes returns 0 Here is my code: require 'fbapi/facebook.php'; $facebook = new Facebook(array( 'appId' => 'xxx', 'secret' => 'xxxxx', )); $user = $facebook->getUser(); the appId and secret are the correct ones. Which could be the reason that getUser sometimes it returns 0??? 回答1: It's more than likely something on Facebook's end (devs have gone through this before a while back). If $user returns null or 0, simply

Facebook (JavaScript) permission dialog for email - Error

蹲街弑〆低调 提交于 2019-12-26 03:52:05
问题 I am developing a Facebook application with FB JavaScript SDK. I need email permission on start of the application I am using OAuth Dialog. Here is the code: <html xmlns:fb="https://www.facebook.com/2008/fbml"> <body> <script src="http://connect.facebook.net/en_US/all.js"></script> <div id="fb-root"></div> <script> // assume we are already logged in FB.init({appId: '*************', xfbml: true, cookie: true, oauth: true}); FB.login({ scope: 'email,user_birthday', }); </script> <a href="https:

Passport Facebook Strategy, trigger route with AJAX

人盡茶涼 提交于 2019-12-24 17:14:30
问题 The problem: XMLHttpRequest cannot load https://www.facebook.com/dialog/oauth?response_type=code&redirect_uri=http%…lhost%3A8080%2Fapi%2Fauth%2Ffacebook%2Fcallback&client_id=1527429390857121. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. If i click the link in the error i get autenticated and get back the datas in json. If i remove the clientside js router everithing works fine. But i am trying to

Ionic Facebook Api invalid key hash

本秂侑毒 提交于 2019-12-23 10:09:40
问题 I can't get my app to allow Facebook login. Everytime the users tries to login to Facebook and authenticate my app with their FB, it gives me this error: Invalid key hash. They key hash xxxxxxxxxx= does not match any stored key hashes. configure your app key hashes at http://developers.facebook.com/apps/xxxxxxxx I've already tried creating a new key hash through the OpenSSL tool like so: keytool -exportcert -alias androiddebugkey -keystore debug.keystore | openssl sha1 -binary | openssl

Firebase facebook button android authentication when logged out

久未见 提交于 2019-12-23 08:49:30
问题 I'm using firebase in my android app and facebook SDK for logging-in as well. The only problem I'm facing is that when I log-in with facebook, then log-out, the facebook login button is in the "log-out" state and when I click it, it asks if I want to log-out. like shown Problem ScreenShot What I do to log-out: FirebaseAuth.getInstance().signOut() so, this obviously only clears my session on firebase but doesn't disconnect my app with facebook, what to do? 回答1: You have to log out from the

'SignInScheme' option must be provided

≯℡__Kan透↙ 提交于 2019-12-23 07:56:14
问题 I'm creating an ASP.NET 5 MVC 6 app that will use Facebook/Google authentication only. I'm also trying to use the cookie middleware without the whole ASP.NET Identity -- following this article: https://docs.asp.net/en/latest/security/authentication/cookie.html So I started with an blank app with no authentication then added the Microsoft.AspNet.Authentication.Cookies and Microsoft.AspNet.Authentication.Facebook NuGet packages in order to have a very minimalistic approach where I don't include

Can you call FB.login inside a callback from other FB methods (like FB.getLoginStatus) without triggering popup blockers?

偶尔善良 提交于 2019-12-23 05:49:09
问题 I’m trying to set up a pretty basic authentication logic flow with the FB JavaScript SDK to check a user’s logged-in status and permissions before performing an action (and prompting the user to log in with permissions if they are not). The user types a message into a textarea on my site to post to their Facebook feed, and clicks a ‘post to Facebook’ button on my site. In response to the click, I check the user’s logged-in status with FB.getLoginStatus . In the callback to FB.getLoginStatus ,

Facebook authentication redirect_uri isn't an absolute URI

落爺英雄遲暮 提交于 2019-12-23 02:26:10
问题 I would like to use facebook Client-side authentication without the JS SDK to avoid popup. I try many ways many differences code but nothing work for many hours please help. here my code FB.init({ appId : appId, status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : false, // parse XFBML channel : 'http://fb.spot-the-differences.com/index.php', oauth : true }); FB.getLoginStatus(function(response) { if (response.status ==

Swift - How Can I handle datas from FIRUserInfo for FB Auth?

我是研究僧i 提交于 2019-12-22 12:38:16
问题 I have just started Firebase's new SDK . let facebookLogin = FBSDKLoginManager() facebookLogin.logInWithReadPermissions(["email"], fromViewController: self) { (facebookResult: FBSDKLoginManagerLoginResult!, facebookError: NSError!) in let credential = FIRFacebookAuthProvider.credentialWithAccessToken(FBSDKAccessToken.currentAccessToken().tokenString) FIRAuth.auth()?.signInWithCredential(credential) { (user, error) in After that while getting Facebook Informations, I have encountered a problem