facebook-oauth

Facebook OAuth is not returning email in user info

独自空忆成欢 提交于 2019-12-05 08:44:25
I'm doing a spree 3.0 installation (ROR) and trying to use facebook oauth for authentication, but the fields sent back after a successful oauth, do NOT contain the email, which is critical to our application. here is the return from the facebook successful authentication. #<OmniAuth::AuthHash credentials=#<OmniAuth::AuthHash expires=true expires_at=1442435073 token="CAAJa3dyBtY4BAJ2ZB3vrenNOFJKSMtvxYO09ZCJtEsmKNBs90q9nmUF4LIBr06xCizEAR3lwht3BwycLkVFdjlvkS1AUGpYODQHu25K0uO8XLDDPkTO0E9oPdIILsbTTOuIT7qcl8nJ6501z0dCXEi9hVNwPYqZBbGqiEhyoLyVgCNnDWdPRLBRF5xSovJdhjjCf6XC8ulJ4NnKBfM8"> extra=#<OmniAuth

Oauth 2.0 cannot get an access token from the signed_request 'code' value

狂风中的少年 提交于 2019-12-05 05:14:15
I'm migrating to Oauth 2.0. My current site uses JS SDK, has a fb-login button, then I'm accessing Graph to get the users details. I'm having problems getting an access token to get this data from Graph. One problem could be that JS SDK dialog doesn't redirect my to the URL it says it should i.e. the one with ?code=XXXXXXX that I can then use to get an access token. So I've looked at the php SDK (I'm using ASP) to see how it does it. I've parsed the signed-request value in the cookie, got the value in the 'code' param to add to the token URL but I can't get an access token. These are the

Facebook OAuth “An Error Has Occurred”

守給你的承諾、 提交于 2019-12-05 02:48:18
问题 I'm having issues getting users logged in with my OAuth Dialog. This was working earlier today, so I suspect that it might be in conjunction with the February Breaking Changes. See for yourself in production at WomStreet. Sandbox mode is disabled, the URL's are set properly in the basic setting section the developer page in facebook. I am using devise for Ruby on Rails, but even inspecting the URL by hand seems to look good. Any ideas on where to begin to debug? UPDATE 1: Seems there is a bug

Authenticated Referrals & Server-Side Auth Flow - What is the redirect_uri?

旧巷老猫 提交于 2019-12-05 02:09:07
问题 From an authenticated referral (such as from a timeline story) to my website, I am trying to use the server-side authentication flow to obtain an access token for the referred user. I need to pass my app secret, the auth code, and the original redirect URI to the Facebook access token endpoint. Since I did not initiate the authentication request, how do I determine the original redirect_uri? The link from the Facebook timeline looks like: http://www.facebook.com/connect/uiserver.php?app_id

facebook Access Token 400 bad request

左心房为你撑大大i 提交于 2019-12-04 21:43:54
问题 I am using following code to retrieve facebook accessToken string url = "https://graph.facebook.com/oauth/access_token?" + "client_id={0}" + "&redirect_uri={1}" + "&client_secret={2}" + "&code={3}"; url = string.Format(url, clientId, redirectUri.EncodeUrl(), clientSecret, code); //Create a webrequest to perform the request against the Uri WebRequest request = WebRequest.Create(url); try { //read out the response as a utf-8 encoding and parse out the access_token using (WebResponse response =

Redirect to Page after Facebook Sign Up

天涯浪子 提交于 2019-12-04 17:41:25
I'm trying to Redirect a user after successful Facebook SIGN UP (not sign in). I want to redirect to /getstarted/welcome after a user Registers for the first time . My omniauth callback is : def facebook # You need to implement the method below in your model (e.g. app/models/user.rb) @user ||= User.find_for_facebook_oauth(request.env["omniauth.auth"], current_user) if @user.persisted? # This will throw if @user is not activated sign_in_and_redirect @user, event: :authentication if is_navigational_format? set_flash_message(:notice, :success, kind: "Facebook") end else session["devise.facebook

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

三世轮回 提交于 2019-12-04 17:14:55
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']) ) { require_once('libs/facebook/src/facebook.php'); $config = array(); $config['appId'] = 'xxxx'; $config[

Login to website using Facebook account [closed]

只愿长相守 提交于 2019-12-04 14:23:52
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I want to implement SSO in our current website so that we can login to that website using a Facebook account. Can you please provide the steps which I need to follow to implement it? 回答1: Try with this link https://developers.facebook.com/docs/guides/web/ 回答2: Mixu had

How do you get long-lived access tokens from the Facebook Graph API (server-side auth)?

守給你的承諾、 提交于 2019-12-04 13:06:23
问题 Since Facebook is removing the offline_access permission, I want to go ahead an migrate our website to use the new system. I found this document on Facebook's website: https://developers.facebook.com/roadmap/offline-access-removal However, when I process someone with Server-Side authentication, I get this response: access_token => BLAHBLAHBLAHdontusemytokensilly expires => 4992 When I try and use the acces point (on that document) to extend the access token more than a couple hours, I get

infinite loop going back to authentication page when using OAuth in MVC5

自作多情 提交于 2019-12-04 11:05:51
问题 I have written a webpage that takes advantage of Google/Facebook auth using MVC5 and OAuth sometimes, I'm able to auth very well using either Facebook or Google. It works quite well. However often what happens is Navigate to the login page Choose either google or facebook provide the account info, getting the necessary redirects redirect back to login page, but not logged in I'm not receiving (or not looking in the right place) any errors that clue me in - I am using SSL on Azure for hosting