facebook-oauth

Facebook auth dialog (JS SDK) returns blank screen

坚强是说给别人听的谎言 提交于 2019-12-12 15:04:42
问题 I'm setting up a rails app and trying to implement login via Facebook JS SDK. Missing Omniauth already... :( Anyway, what happens is that the dialog pops up, the user provides the login info, but then it redirects to https://www.facebook.com/connect/window_comm.php?_id=some-string&_relation=opener&auth_token=some-big-string , a blank screen. The pop-up doesn't close. If I close it manually, though, and then refresh my page, I can see the login happened. A curious thing is that on the first

Facebook PHP SDK $uid = $facebook->getUser() always returns 0 [duplicate]

我是研究僧i 提交于 2019-12-12 09:06:15
问题 This question already has answers here : Why is Facebook PHP SDK getUser always returning 0? (26 answers) Closed 5 years ago . I am trying to integrate our DB with the facebook API , really new on this so I would appreciate some help. I am always getting 0 Using $uid = $facebook->getUser() I had a look to similar issues but didn't find a related solution. PHP if($_REQUEST['action']=="signup" && $_REQUEST['auth']=="facebook" && !empty ($_REQUEST['auth']) && !empty ($_REQUEST['action']) ) {

Facebook oAuth implementation for blackberry

我怕爱的太早我们不能终老 提交于 2019-12-12 05:25:20
问题 I am working on a blackberry native application, which uses the features like Facebook and twitter sharing of messages. After goggling I found that I could make use of Facebook SDK in order to integrate with Facebook service. I have downloaded the SDK from this link https://sourceforge.net/projects/facebook-bb-sdk/ I have followed the steps that are being explained in the README pdf file, which was bundled with SDK. I have followed the below steps Step1: Getting Facebook façade instance

Should we check token in case of Authorization Code flow?

和自甴很熟 提交于 2019-12-12 03:39:34
问题 It's a know problem that Instant Flow struggles from confused problem, so you have to check whether access_token you received was given to your application. I always considered it's not a problem for Authorization Code flow but in this answer it was mentioned it is not so and you have to verify token even in Authorization Token flow. But honestly I can't figure out a workflow where it's necessary. Like we receive a code and then make direct request for a token (specifying client_secret). I

Check if Ouath token is invalid

你。 提交于 2019-12-11 19:27:02
问题 Is there a way to send a request to Facebook and Twitter with a token to see if it has been invalidated. I know if I change my password on facebook I invalidate my tokens so if a user of my app does this I would like to display that as inactive and prompt them to re-auth their account to continue using it. 回答1: Just use the token against https://graph.facebook.com/me. If it has expired, it'll tell you. 来源: https://stackoverflow.com/questions/8748918/check-if-ouath-token-is-invalid

Facebook oauth login not returning email

早过忘川 提交于 2019-12-11 19:24:37
问题 I am using this plugin for oauth login, here is my FB response while doing aouth login: {"state":"","access_token":"XYZ","expires_in":5110943,"client_id":"CLIENT ID","network":"facebook","display":"popup","redirect_uri":"http://localhost/XYZ123/www/callback.html","scope":"email,basic","expires":1439628780.389}} The problem is i am not getting email of user. As per other SO solutions : I have verified email so that should not be a matter. I am not getting FB message regrading verifying email.

How to bind Facebook onlogin event to customized button?

老子叫甜甜 提交于 2019-12-11 12:51:14
问题 I know how to use custom button as Facebook login. Now I'd like to bind onlogin event to customized button , but I don't know how to do. Original code <fb:login-button scope="public_profile,email" onlogin="afterLogin();"> </fb:login-button> <script> /* Assume that Facebook SDK loaded asyncronously and initilized */ function afterLogin() { // Do stuff } </script> My code <button id="cusomized-button" onclick="fbLogin();" onlogin="afterLogin();"> Customized button </button> <script> /* Assume

Legacy Connect Auth stopped working

孤街浪徒 提交于 2019-12-11 09:46:11
问题 I'm working with an application that was built and integrated to Facebook using the legacy connect auth: https://www.facebook.com/login.php?api_key={appkeyhere} Starting sometime the week of Oct 22, 2012, existing users who login to the app using the above URL get redirected to https://www.facebook.com/login.php?login_attempt=1 and have a blank white screen. New users signing up to the app for the first time get redirected back to the application site. I had the people who maintain the site

Automatically invoking FB.login on Facebook page tab app for non-logged in user

南笙酒味 提交于 2019-12-11 03:54:09
问题 I have a Facebook Page tab app. For a user who is not logged in, I want to: Detect if user is not logged in If not logged in, automatically direct user to login My current approach is to use FB Javascript SDK (in preference to server-side authentication flow): On page load, run FB.getLoginStatus to check user status If user is not logged in, run FB.login to invoke OAuth dialog Problem: FB.login creates a pop-up dialog (prefer if within Page Tab iframe) This pop-up dialog is blocked if FB

GetExternalLoginInfoAsync returns null dotnet core 2.0

…衆ロ難τιáo~ 提交于 2019-12-10 18:36:24
问题 I'm trying to setup Facebook authentication with dot-net core 2.0, but in my ExternalLoginCallbackAsync method, I'm always getting null as a response I have followed the documentation and so far this is what I've done: in my ConfigureServices in the startup file: services.AddAuthentication( options => options.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme); services.AddAuthentication().AddFacebook( f => { f.AppId = Configuration["facebook-app-id"]; f.AppSecret =