facebook-authentication

java.lang.RuntimeException: Failure delivering result ResultInfo while logging using Facebook

泪湿孤枕 提交于 2019-12-04 05:25:23
My application is working fine on emulator. So I decided to run my application on my Android phone. I am trying to login to Facebook account using my application and it works fine on emulator. And as soon as I run my application on android phone I always get this exception- 01-30 11:06:08.400: E/AndroidRuntime(7463): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=64206, result=0, data=null} to activity {com.facebook.samples.sessionlogin/com.facebook.LoginActivity}: java.lang.NullPointerException Below is my code- @Override public View onCreateView

how to read facebook signed_request to get user_id

橙三吉。 提交于 2019-12-04 03:24:36
问题 According to Facebook - Authentication within a Canvas Page Document, they say that we will be getting a signed_request which consists a JSON object. Now they say that signed_request can be get through $_POST['signed_request'] I agree its working for me. Now according to them if the user is logged in i will be getting a JSON object value like this:- { "expires":UNIXTIME_WHEN_ACCESS_TOKEN_EXPIRES, "algorithm":"HMAC-SHA256", "issued_at":UNIXTIME_WHEN_REQUEST_WAS_ISSUED, "oauth_token":"USER

Android Facebook SDK 3.0 Simple Status Update Without Explicit Login?

我的未来我决定 提交于 2019-12-03 20:41:50
I'd like to know the simplest way to update a user's facebook status. I'd like to simply display a 'Share' button. When the user touches 'Share': If they are already logged in to Facebook, a dialog will appear giving them the option to edit their posting before submitting to Facebook. If they aren't already logged in to Facebook, the will be prompted to login and then automatically shown the sharing dialog upon successful login. Is there a simple way to do this, or do I need to implement a separate facebook login flow? So I think I've got a pretty clean way to do it. I welcome any comments. I

New Firebase Facebook login

你说的曾经没有我的故事 提交于 2019-12-03 14:45:52
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, completion: { (user, error) -> Void in if error != nil { print("error is \(error)") } else { print(user)

Can not authorise user in Facebook JS SDK : “This authorization code has been used.” or how to get new authorisation token?

元气小坏坏 提交于 2019-12-03 14:04:32
I am trying to use Facebook to authenticate users. It works ok except for Ajax calls. Most of the times it just send old token and I get : {"error":{"message":"This authorization code has been used.","type":"OAuthException","code":100}} So what I tried doing is wrapping every ajax call with FB.getLoginStatus(function(response) { if (response.status === 'connected') { return fn(); ... this did not worked so I've added : true as parameter to getLoginStatus to prevent caching : FB.getLoginStatus(function(response) { if (response.status === 'connected') { console.log('connected'); fn(); } else if

auth.statusChange doesn't fire during FB.init if the user isn't logged in to facebook

北慕城南 提交于 2019-12-03 12:19:33
问题 I wondered if anyone has found a workaround to the behaviour that I'm experiencing. Take the example of the below code: <script> window.fbAsyncInit = function() { FB.init({ appId : '[----removed-------]', // App ID channelUrl : 'http://localhost/channel.html', // Channel File status : true, // check login status cookie : true, // enable cookies xfbml : true // parse XFBML }); // Additional initialization code here FB.Event.subscribe('auth.statusChange',fbLoginStatus); console.log(

Is 'publish_actions' extended permissions available for testing?

99封情书 提交于 2019-12-03 07:55:00
I've been trying to test out Scores and Achievements using the 'publish_actions' extended permissions but when I add it, it doesn't show up in the Request for Permission page. It's like its ignored. I've tried a couple different ways: $loginUrl = $facebook->getLoginUrl(array('scope' => 'publish_actions', 'canvas' => 1, 'fbconnect' => 0, 'redirect_uri'=>config_item('facebook_url'))); $loginUrl = 'https://www.facebook.com/dialog/oauth?' . 'client_id=' . config_item('fbappid') . '&redirect_uri=' . urlencode(config_item('facebook_url')) . '&state=' . $_SESSION['state'] . '&scope=publish_actions';

What are the different options for social authentication on Appengine - how do they compare?

*爱你&永不变心* 提交于 2019-12-03 07:51:42
[This question is intended as a means to both capture my findings and sanity check them - I'll put up my answer toute suite and see what other answers and comments appear.] I spent a little time trying to get my head around the different social authentication options for (python) Appengine. I was particularly confused by how the authentication mechanisms provided by Google can interact with other social authentication mechanisms. The picture is complicated by the fact that Google has nice integration with third party OpenID providers but some of the biggest social networks are not OpenID

Facebook MVC 5 ASP.NET Identity - Email is null for certain users

六月ゝ 毕业季﹏ 提交于 2019-12-03 07:20:47
This is a problem i am trying to solve for a month now. (tried any possible article/code out there). In ExternalLoginCallback action, AuthenticationManager.GetExternalLoginInfoAsync() returns a valid object (with all the provider details) but email is null for certain Facebook users . For the large majority of Facebook login email is presetnt. But for about 30% of logins I get an exception down the process because the email is null. Luckily sometime ago I've created a Facebook user which reproduce the problem . I've created a sterile test environment in localhost and indeed email comes null

App crashes after first Facebook Login

南楼画角 提交于 2019-12-03 07:13:44
Sometimes (not very frequently) my android app crashes after first logging to facebook using Facebook Login (Facebook SDK version 3.5). I'm getting exception: java.lang.RuntimeException: Unable to resume activity {my.app.package/com.facebook.LoginActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=64206, result=0, data=null} to activity {my.app.package/com.facebook.LoginActivity}: java.lang.NullPointerException with 2 different root exceptions: Sometimes with: java.lang.NullPointerException at com.facebook.AuthorizationClient.startOrContinueAuth