facebook-authentication

An internal error has occured. [ invalid access_token, error code 43. ]

蓝咒 提交于 2020-01-25 20:40:48
问题 When i sign in my APP silently twice with Facebook credential of Firebase,it return this error message. An internal error has occured. [ invalid access_token, error code 43. ] I save the Facebook token in SharedPreferences when first login,and get it when twice login,then create credential with FacebookAuthProvider.getCredential(accessToken); . At last I sign in with this credential using following code: private void signInFirebase(AuthCredential credential, final TaskCompleteListener

IdentityServer Facebook Auth changes subject id / is not the facebook id

回眸只為那壹抹淺笑 提交于 2020-01-24 19:30:26
问题 I enabled the IdentityServer to authenticate with Facebook with the implicit flow. now when I get authenticated i get an id value as subject. like 502967fe0125ce3ff75050ef7b83fd68 I used it as a user id to store user related data. But from time to time it seems like the content of the subject changes and I get a different id. Am I missunderstanding the concept of the Subject . Is it expected that it is chagning ? Shouldn't be the subject id constant? What information should I use to store

Facebook Login Button: Can I prevent auto page reload after login?

霸气de小男生 提交于 2020-01-15 07:56:06
问题 I'm trying to upgrade to the 3.1 SDK and running into some problematic behavior: When I log in via the FB login button on my site, the page reloads, despite the fact that I have my own JS method defined in the login button's "onlogin" event. Because the page instantly reloads, it appears that my own "onlogin" script (which checks the FB user and logs them into MY site) seems to get cut off or does not fire. Thus, the user cannot log in to the site. The other side effect is peculiar: After

Why doesn't FB.login delete the logout cookie?

僤鯓⒐⒋嵵緔 提交于 2020-01-13 20:37:01
问题 I have a problem with Facebook authentication logic: On home page load, I call getLoginStatus() and if I get "connected" , I redirect the user to his account page. If not, the user can click the login button that calls FB.login() . If the user is logged in and then navigates back to home page (full page load), getLoginStatus() there returns "connected" as expected and user gets bounced back to account page. However, when the logged in user calls FB.logout() and repeats steps 1-2, the 2nd step

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

流过昼夜 提交于 2020-01-12 19:08:15
问题 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

Is it possible to put a Facebook like button in a mobile app and when used, it would like my website url?

守給你的承諾、 提交于 2020-01-06 07:35:10
问题 I have an Android and an iPhone mobile app into which I need to put a Facebook like button for marketing purposes. The problem is that I am not sure what is really being liked when a user likes something from inside a mobile app. I have a website for the two apps (Android and iPhone) so it seems that this website should be liked when a user likes something from a mobile app. Is that possible to do? 回答1: From my experience and what i know, Facebook doesn't leave you the possibility to use a

what is recommended for handling password for new Facebook signed in users?

别来无恙 提交于 2020-01-06 02:59:07
问题 When let users sign in using Facebook, I create a new devise user after first authentication, the question is what is the better practice to do regarding the password of newly created user ? 1. Fill it with a random token? Then, how would the user know the newly created password ? a. Shall I send him an email? b. Write it as a flash message after his first Facebook authentication ? I know that user might not need to have a password as he can always sign in with Facebook, but, he might need to

Sign in issue using Facebook Authentication

柔情痞子 提交于 2020-01-03 11:23:31
问题 I'm trying to login from Facebook and Google API, the Google API works fine, the problem arises with Facebook login, everything is setup on the Facebook developers console and my app is live as well. The problem is whenever user clicks on the login button (which is a customized ImageButton) the ProgressBar shows up and then it goes away and the app is still on the same activity without user being logged in. The complete code for that activity is: @Override protected void onCreate(Bundle

How to configure a Facebook Application for sub domains

百般思念 提交于 2020-01-02 02:53:49
问题 I'm building a Multi-Tenant application and I'm struggling incorporating a Facebook Login into the web application. The tenants are using a sub-domain for example http://tenant-1.domain.com/ http://tenant-2.domain.com/ http://tenant-3.domain.com/ So, I have created an application and when it comes to add the Website, how can I make it to be available in all tenants? Something like: But of course, that does not work, and if I add just http://domain.com/ it does not work either on http://tenant

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

感情迁移 提交于 2020-01-01 19:09:10
问题 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