facebook-authentication

Session.StatusCallback cannot be resolved to a type - Facebook API

与世无争的帅哥 提交于 2019-12-14 03:46:41
问题 I followed the login authentication tutorial on Facebook and have copied the following code into my android application private Session.StatusCallback callback = new Session.StatusCallback() { @Override public void call(Session session, SessionState state, Exception exception) { onSessionStateChange(session, state, exception); } }; However, it is giving me the following errors: Session.StatusCallback cannot be resolved to a type Which is leading to the following errors: callback cannot be

Can not authenticate in Facebook

坚强是说给别人听的谎言 提交于 2019-12-13 19:21:57
问题 I made an application in android in which I set Facebook authentication on button click. But when I click that button it comes back to my activity. I know that problem is that : I can not log in to Facebook because I have already signed in with Facebook app in my device. Then my question is how can I log in separately in my Android app and Facebook app? 回答1: if u have used fb sdk than in class FacebookConnector change the login method as shown below public void login() { if (!facebook

When is Facebook deprecating the JavaScript SDK?

我是研究僧i 提交于 2019-12-13 14:15:39
问题 I've asked this on the Facebook Developer Forums, but no-one is answering, so thought i'd ask it on Stack. I've got a website which integrates with Facebook Connect using OAuth for authentication. But i have some code which leverages the JavaScript SDK. I have heard that the JavaScript SDK is being deprecated and/or authentication via the JavaScript SDK is being deprecated. Can anyone: Confirm if the above statement is true Provide a link giving the date that it is to be deprecated Tell me im

Initializer for spree_social gem with facebook login integration keys

扶醉桌前 提交于 2019-12-13 07:37:55
问题 I have an app based on spree which should be integrated with Facebook. I'm doing this by spree_social gem which works fine, but i need some config file so I won't have to click through admin panel every time. I have added ne initializer: /config/initializers/devise.rb require 'omniauth-facebook' Devise.setup do |config| config.omniauth :facebook, KEY, SECRET end but this does nothing. I tried every possible tutorial and example in net, i.e. https://github.com/plataformatec/devise/wiki

Hide the “X friends use this app” message in the auth dialog

∥☆過路亽.° 提交于 2019-12-13 07:36:11
问题 I am developing a FB app where it is very negative to know that none or very few of your friends are using the app at time of installation. Is there a way to hide the "X friends use this app" message in the auth dialog? Thanks 回答1: No, this is not a configurable part of the Auth Dialog 来源: https://stackoverflow.com/questions/11870340/hide-the-x-friends-use-this-app-message-in-the-auth-dialog

Will the auth work without state at the SESSION?

时光怂恿深爱的人放手 提交于 2019-12-13 07:35:25
问题 I saw similar question Facebook Authentication Example CSRF and they say "The hash (or state) is generated by you for each request to the web service (Facebook) and stored in the session on your server. This hash is sent with the request to Facebook from your website. Facebook sends the exact same hash back as a parameter on the response." Does it mean that without state at the SESSION the auth won't work? 回答1: A few months ago i made this type of login. It may probably work without it, but

Using a web page, after sign up on Firebase, with Facebook

天大地大妈咪最大 提交于 2019-12-13 03:37:08
问题 I have a small web site where users can sign in on Firebase, using email and password. I uses this code: <script> function SignUpWithMailPSW(email,pswRdmSeq) { .... firebase.auth().createUserWithEmailAndPassword(email, pswRdmSeq).then(function(user) { .... } ... useful things irrelevant to the question. } </script> Now users can also sign in using Facebook. To get started I found this document. And to experiment I did something based on what I read, just a small test page. Here is the code:

Binder has been finalized when using Facebook's Android SDK

£可爱£侵袭症+ 提交于 2019-12-13 02:59:29
问题 I'm using Facebook's SDK for Android (latest version as of today). The code that is for authentication is the following: prefs = PreferenceManager.getDefaultSharedPreferences(this); facebook = new Facebook(FACEBOOK_APP_ID); String fbAccessToken = prefs.getString("fb_access_token", null); long fbAccessExpires = prefs.getLong("fb_access_expires", 0); if (fbAccessToken != null) { facebook.setAccessToken(fbAccessToken); } if (fbAccessExpires != 0) { facebook.setAccessExpires(fbAccessExpires); }

Failing to retrieve access token in .NET desktop app

故事扮演 提交于 2019-12-12 13:52:12
问题 I'm writing a .NET app that runs on a Windows computer. It is not accessible through the browser. The problem is, I can't authenticate like I should. I'm currently coding in C# .NET, more specific in C#. I have a webbrowser control on my form. The user logs on to facebook through this webbrowser control. After the logon, I start the authentication procedure. I then retreive a code. Here's where it goes wrong. With this code I want to obtain an access token. The generated request URL looks

Redirection between facebook and my app canvas never stops

醉酒当歌 提交于 2019-12-12 05:39:21
问题 Following is the code that use to check weather user has granted me permissions.If the User denies the permission, my app redirects the user again to facebook for permissions. <?php if(isset($_REQUEST['error'])){//ok some error has occurred from Facebook if(isset($_REQUEST['error_reason']) && $_REQUEST['error_reason']=='user_denied'){// ok so the error has occurred coz the user denied permissions! require 'lib/facebook.php'; $facebook_appid='XXXXX'; $facebook_app_secret='XXXXX'; $facebook =