facebook-authentication

Facebook: refresh AccessToken on Android

微笑、不失礼 提交于 2019-12-07 08:37:02
问题 They are saying in the AccessToken docu the following: "Native mobile applications using Facebook's SDKs will get long-lived access tokens, good for about 60 days. These tokens will be refreshed once per day when the person using your app makes a request to Facebook's servers." Does it mean that only if the request to Facebook's servers is made from client Android app (I am not sure how to interpret the "... the person using your app ...") then the access token will be refreshed ? In my app,

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

送分小仙女□ 提交于 2019-12-06 05:57:20
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, How Can I handle all of them again? : var userData = ["id": FIRAuth.auth()?.currentUser?.uid as!

Android Facebook SDK 3.0 Simple Status Update Without Explicit Login?

无人久伴 提交于 2019-12-05 04:10:13
问题 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

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

旧城冷巷雨未停 提交于 2019-12-04 23:06:50
问题 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

Example for Authenticating using AWS Cognito (boto3)

人盡茶涼 提交于 2019-12-04 19:29:40
问题 I am trying AWS Cognito using boto3. I find it difficult to understand by reading the AWS documentation. I am looking for an example or tutorial which has a step-by-step explanation. I already have a facebook app and Cognito identity pool created. Something like backspace Cognito tutorial for node.js 回答1: I found couple of examples for integrating with Cognito using boto3. Amazon AWS Cognito and Python Boto3 to establish AWS connection and upload file to Bucket https://forums.aws.amazon.com

Is there a way to log out via Facebook api on Android IF you have the Facebook app?

為{幸葍}努か 提交于 2019-12-04 17:34:05
I'm using Facebook's Android API and everything works as expected with one exception. When I leave the Facebook app installed on the device (this is the stand-alone app, that has nothing to do with either the API or my app), and I call logout() on my Facebook object, it correctly voids the Facebook object but the next time I fire up the object it goes and retrieves the login data from the Facebook app and the login persists. If I don't have the Facebook app installed on the device, everything works perfectly. I'm curious if there's some mechanism I'm overlooking for forcing the Facebook app to

Is 'publish_actions' extended permissions available for testing?

喜你入骨 提交于 2019-12-04 13:43:37
问题 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='

How to retrieve facebook user profile picture within asp.net core MVC RC2

随声附和 提交于 2019-12-04 13:40:46
Using ASP.NET Core MVC RC2 I am trying to retrieve the Facebook user profile picture. To do this I have the following lines in the Configure method of the Startup class app.UseFacebookAuthentication(new FacebookOptions() { AppId = Configuration["Authentication:Facebook:AppId"], AppSecret = Configuration["Authentication:Facebook:AppSecret"], Scope = { "user_birthday" }, Fields = { "birthday", "picture" }, }); In the AccountControllers ExternalLoginCallback method I was expecting to see the data for the picture in the ClaimsPrincipal collection which can be accessed via info.Principal but I

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

不想你离开。 提交于 2019-12-04 13:14:30
问题 [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

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

允我心安 提交于 2019-12-04 11:56:06
问题 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