facebook-login

facebook login fails: {Session state:CLOSED_LOGIN_FAILED, token:{AccessToken token:ACCESS_TOKEN_REMOVED permissions:[]}, appId:131***64547}

我与影子孤独终老i 提交于 2019-12-04 21:50:15
I try this code to perform login to my app using fb. public class FacebookLogin2Activity extends BaseActivity { private String TAG = "MainActivity"; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.facebook_login); Session session = Session.getActiveSession(); if (session != null && session.isOpened()) { fetchUserDetails(session); } LoginButton authButton = (LoginButton) findViewById(R.id.authButton); authButton.setOnErrorListener(new OnErrorListener() { @Override public void onError(FacebookException error) { Log.e(TAG,

Android with Django: How to keep user logged in

心不动则不痛 提交于 2019-12-04 18:19:55
I want to know what the method used by popular apps are. Here are the approaches I have considered: When user logs in, save username & password in shared preferences and re-use it every time ( I think this will suck ) Login on the client(app) side with Facebook SDK, pass the authentication token to the app and use that to create a user. Pass a token to the app, store this token on the phone and use it in future communications. I think it would make sense to re-create this token periodically, but how to do so without asking the user to login again? Create a login view. this will mean passing

Could not load file or assembly 'System.Diagnostics.DiagnosticSource on ASP.Net Core migration from VS2015 to VS2017

北战南征 提交于 2019-12-04 18:07:16
问题 I have a web in ASP.Net Core (4.6.1 framework) that uses Facebook and MS external login that I created with Visual Studio 2015 and opened in the new Visual Studio 2017 that came out yesterday. VS2017 made a few changes related to the csproj, project.json, etc files. The site compiled and executed fine except for one part. If I did a Facebook or Microsoft external login, the site displayed this trap: FileLoadException: Could not load file or assembly 'System.Diagnostics.DiagnosticSource,

How do I get back to the iPhone web app after having logged in with Facebook Connect?

我的未来我决定 提交于 2019-12-04 16:57:39
I have a mobile web site built using jQuery Mobile. I often run it in full screen/mobile web app mode on my iPhone (I have added the web app to my iPhone home screen). On one of the pages, the user is required to log in to Facebook using the Facebook Connect JavaScript API. If the user is not already logged in, this is done by clicking a login button. The event handler for this button looks like this: ("#fbLogin").click(function () { FB.login(handleStatusChange(response), { scope: "publish_stream", connect_display: "touch" }); }); In the above code I have inserted some line breaks for better

Access token warning when logging in using Facebook JavaScript SDK

倾然丶 夕夏残阳落幕 提交于 2019-12-04 16:51:14
问题 I'm using debug.js and getting the following message when executing FB.login : You are overriding current access token, that means some other app is expecting different access token and you will probably break things. Please consider passing access_token directly to API parameters instead of overriding the global settings. Any clues? 回答1: I solved the issue, the problem was that I was requesting a permission that the app was not approved for, and not using an FB account that was associated

Set Login/Logout Text for Button in Facebook Android SDK 4.0?

血红的双手。 提交于 2019-12-04 16:36:20
问题 My xml looks like this <com.facebook.login.widget.LoginButton xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/fb_login_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:paddingLeft="15dp" android:paddingRight="15dp" android:text="CONNECT WITH FACEBOOK" android:textColor="@color/white" android:textSize="20sp" android:textStyle="bold" android:background="@drawable/button_fb_login"/> and

Can't relogin with Facebook credentials after logout

馋奶兔 提交于 2019-12-04 13:33:27
问题 I have an Android application that allow users to login with their Facebook credentials. Once they logout for the first time, they can't login again. After clearing the application's permission from the Applications page in user settings on Facebook's website, logging in works correctly. I use a LoginButton to login. Activities that need to be able to access the login information, extend this AuthActivity Activity. public class AuthActivity extends Activity { private AuthUtils authUtils;

Facebook C# SDK - Server flow authentication

若如初见. 提交于 2019-12-04 13:13:32
问题 I am using the Facebook C# SDK installed using NuGet to allow user's to login to my site using Facebook. In all the C# SDK documentation that I've found, the access token was obtained using the JavaScript SDK. I want to do the entire authentication flow server side without using JavaScript SDK. Where can I find good documentation or sample code for the steps I need to follow for complete server side authentication using the Facebook C# SDK? Is there any advantage of combining C# SDK and

What data can be obtained about a user who logs in with Facebook Oauth?

白昼怎懂夜的黑 提交于 2019-12-04 13:10:26
问题 I'm currently using OpenID to allow users to login to my website using Google as a provider. I'm thinking about allowing users to use Facebook to login as well. When a user logs in with Google OpenID, Google sends the following data to my website about the user: Full name First name Last name ID Gender Language Email address I've done some quick searching, but I can't find a list of attributes that Facebook would provide with an Oauth login. What data does facebook provide by default, and

Facebook / Parse Login behaving strange: The proxied app is not already installed

白昼怎懂夜的黑 提交于 2019-12-04 12:59:02
I am going nuts with this! Although, the solutions out there did help me, they did not fix my problem. I am adding Facebook login to my current app. The kicker is, I have a few apps that already have this feature. I had no problem adding it to them! I have looked at the code of those apps, and this code I am working on now is identical. The only difference I can think of is this app was out on the market then received a Facebook login feature. But, I can't imagine that would matter... Code: Button fb = (Button) view.findViewById(R.id.bFacebook); Settings.setApplicationId(APPLICATION_ID); fb