facebook-authentication

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

放肆的年华 提交于 2019-12-03 01:56:21
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("getloginstatus"); FB.getLoginStatus(fbLoginStatus); </script> Using FB.init with status set to true, essentially

Trailing characters in URL after Facebook Login

余生长醉 提交于 2019-12-02 10:31:25
I am going through the facebook authentication process to log my users into my site. Once a user is logged in I redirect to the profile page using: resp.sendRedirect("/l/profile"); But when I get to the profile page, the URL ends /profile#_=_ This seems to be at the end of the URL redirected by facebook when it returns a code. Why is it sticking around, how do I get rid of it? I'm guessing it's a byproduct of new feature called "Authenticated Referrals" whereby they add a valid accessToken to the end of the url as either an #anchor or ?param (depending on whether you're reading it client- or

What is verify token in Facebook Realtime API

岁酱吖の 提交于 2019-12-02 03:49:30
问题 I'm trying to implement Facebook Realtime api with my application. I want to pull the feeds from my 'facebook PAGE'. I've obtained app_access_token... app_access_token = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx' url = 'https://graph.facebook.com/' + FB_CLIENT_ID + '/subscriptions?access_token=' + app_access_token url_params = {'access_token':app_access_token,'object':'page', 'fields':'feed', 'callback_url':'http://127.0.0.1:8000/fb_notifications/', 'verify_token' : 'I am taking a random string here...'}

What is verify token in Facebook Realtime API

有些话、适合烂在心里 提交于 2019-12-02 02:19:42
I'm trying to implement Facebook Realtime api with my application. I want to pull the feeds from my 'facebook PAGE'. I've obtained app_access_token... app_access_token = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx' url = 'https://graph.facebook.com/' + FB_CLIENT_ID + '/subscriptions?access_token=' + app_access_token url_params = {'access_token':app_access_token,'object':'page', 'fields':'feed', 'callback_url':'http://127.0.0.1:8000/fb_notifications/', 'verify_token' : 'I am taking a random string here...'} urlResponse = call_url(url, url_params) Everytime I call the url with url parameters, I get error :

$facebook->getLogoutUrl(); link doesn't log user out of facebook

≡放荡痞女 提交于 2019-12-01 04:16:19
My current user story is that user1 is logged into my website and facebook (these accounts are connected etc). User1 logs out of my site but not facebook. After this user2 logs into his account, but the left over session from user1 screws with user2's interaction with my site and who they post as. So to fix this I made it check if the user who is logged in actually owns the currently logged in facebook (this would result in them going to facebook log out etc) and it shows a link that should allow the user to log out... Upon clicking the link they go to facebook and return to the site. But if

FirebaseUI authentication with Facebook not working

我的未来我决定 提交于 2019-12-01 03:00:22
I am using FirebaseUI-Authentication . Signing in with an email or a Google account is successful, but sign in with Facebook doesn't work. onActivityResult() is not called after AuthUI activity was started and attempted to sign in with Facebook. After sign in attempt the app is stuck at the loading window. logcat outputs a FirebaseApp log: Notifying background state change listeners. On the Facebook app dashboard I set the Valid OAuth redirect URI , as the firebase guide stated, and I set the app public (does it matter if it is public or in development state?). In the Firebase console I

Using facebook.authorize with the Android SDK does not call onActivityResult

纵饮孤独 提交于 2019-12-01 01:01:00
I'm trying to call the Facebook authorization from my Android activity, but for some reason it never calls the onActivityResult as it should. I followed the official tutorial , and I even created a very simple application just in order to try this functionality: public class SimpleFacebookActivity extends Activity { private EditText console; private Facebook facebook = new Facebook(APP_ID); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); this.console = (EditText)super.findViewById(R.id.console); this.console.append(

Firebase Facebook login check if user exist

不问归期 提交于 2019-12-01 00:55:40
I have an facebook login system which works with firebase but I want to check if user exist on my firebase (i don't want to add it, just want to make sure if he exist because I want to redirect user to another page to complete its profile, once its done I'll want to send it to firebase). I just need to check if user exist on my db. Here is the code that I try but it returns nil error and it automatically add user to firebase. let credential = FIRFacebookAuthProvider.credentialWithAccessToken(FBSDKAccessToken.currentAccessToken().tokenString) FIRAuth.auth()?.signInWithCredential(credential) {

Android: How can I force a facebook auth by mobile web

爷,独闯天下 提交于 2019-11-30 23:31:36
I want to develop the android app with facebook authentication. But if the phone has facebook application in it, I cannot auth on my app, if not, it works well. so, i want to force a facebook authentication by mobile web without facebook application. Only if I use authorize(. , .)in application, it uses facebook app directly. How can I fix this problem?? additionally, Hackbook(https://developers.facebook.com/docs/mobile/android/hackbook/) also doesn't work if I auth by facebook app. I cannot login on app. /////comment I found the answer by myself Change the authorize function in facebook.java

Webpack dev server throws error - Refused to execute script because its MIME type ('text/html') is not executable

廉价感情. 提交于 2019-11-30 23:10:33
问题 I use Webpack bundler and Webpack dev server for local development. The front-end is in React.js+Redux and the back-end in Node.js and koajs. In back-end, I use passportjs library for user authentication and other libraries koa-passport, passport-facebook, passport-google-auth for authentication through Facebook or Google. Basically, I implemented koa-passport-example. If my application wants to redirect user to Facebook or Google login page, Webpack dev server throws error: GET http:/