facebook-oauth

Spring Social - 404 error for facebook login

人走茶凉 提交于 2019-12-07 03:26:54
问题 I have spring 3.1 with spring security login in my app. I am trying to add facebook login using spring social to it. It goes to the facebook login page but post log in it throws a 404 error. I have this in the URL: http://localhost:8080/TestProject/signin?error=provider#_=_ Here goes my spring social config: <bean class="org.springframework.social.connect.web.ProviderSignInController"> <!-- relies on by-type autowiring for the constructor-args --> <constructor-arg ref="signInAdapter" /> <

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

孤街浪徒 提交于 2019-12-07 01:40:14
问题 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

400 Client Error: Bad Request using python-social-auth for Facebook auth in Django

*爱你&永不变心* 提交于 2019-12-06 11:33:38
问题 Lately some strange errors have happened in a project I'm working on. It was working perfectly fine when one day (without any changes on our side that I know of) Facebook authentication with python-social-auth for django stopped working. The error given was "400 Client Error: Bad Request" and seemingly occurred in the /complete/facebook callback. I have tried switching to older code, creating a new Facebook app from scratch and switching the settings of the existing one, all to no avail. Does

OAuthException code #2 for particular account when using SessionLoginSample

﹥>﹥吖頭↗ 提交于 2019-12-06 11:29:11
We've run into a very strange case in which a particular Facebook account fails on a request to 'https://graph.facebook.com/me/friends?access_token=XXX' after successful login. After discovering this case in our app I verified that the exact same exception occurs when using the Facebook SDK sample - SessionLoginSample. After successfully logging into this particular account and granting privileges I return to the sample app and click the test link. This is the response: { "error": { "message": "An unexpected error has occurred. Please retry your request later.", "type": "OAuthException", "code

Facebook Login from subdomains (too many “Valid OAuth redirect URIs”)

左心房为你撑大大i 提交于 2019-12-06 08:22:20
I've faced with the following problem: I'm using Facebook js sdk for the login process. In App settings Site URL is set to " http://example.com/ " , App Domains are "example.com, www.example.com" . In Facebook Login Settings "Valid OAuth redirect URIs" are " http://example.com/ , http://www.example.com/ " . From the main domain it works just fine, but under subdomain (e.g. http://subdomain.example.com/ ) i get the following error: "URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and

Facebook messenger bot error nonexisting field (messages)

☆樱花仙子☆ 提交于 2019-12-06 06:04:43
I am a new member. I have an error when send message using HTTP Post to "graph.facebook.com/v2.11/me/messages?access_token=MY_PAGE_TOKEN" This is error return: `{"error":{"message":"(#100) Tried accessing nonexisting field (messages) on node type (Page)","type":"OAuthException","code":100,"fbtrace_id":"EB39Xkxnf6O"}}` Despite error, tester and developer still able to receive message. But the FB viewer might not and they not approve my review submission: "We did not receive an automated response when we messaged your Page. Bots should respond to all input from the user within 30 seconds so that

email field is optional in passportjs facebook strategy

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 04:29:46
I wrote the code for login with facebook, everything works and I'm getting the user's email address. But there is another option on facebook which lets the user select the data my application is going to have access to. If user clicks on that, he'll see the name and everything marked as required, but email is optional and the user can remove it from the data that is going to be provided to the app. On the application, email is required. So how I can mark the email as required on facebook? This is the snippet I'm using in the code. passport.use(new FacebookStrategy({ clientID: config.social

OAuth & facebook access_token not working, need OAuth expert

戏子无情 提交于 2019-12-06 04:14:45
问题 I have read the 1000+ blogs about how the redirect_uri has to be the same in both calls to OAuth in order to get a user token, but 100% of the time, regardless of how I format the URL, it fails with: { "error": { "message": "Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request", "type": "OAuthException", "code": 100 } } I have been meticulous in making sure that the URLs in both calls were the exact same. My URL

MVC 4 oAuth With Facebook does not return email address

二次信任 提交于 2019-12-06 01:51:40
I am experimenting witht he MVC 4 oAuth that was released this month. Can anyone point me to where I can add eMail address so that I can store that with user properties? I need to be able to send a welcome email but don't know where to start with the out of the box MVC 4 oAuth. Ideally, after successful login, I want to receive the User Info from Facebook in my controller and drop it in a table so an offline process can send the welcome email. Thanks, Victor In order for Facebook to return an e-mail you must specify it in the scope. For example with the JS SDK you would do something like....

reauthenticate feature has changed its behavior?

怎甘沉沦 提交于 2019-12-05 14:54:08
问题 In my application to be able to switch to another user, I use the "auth_type=reauthenticate" parameter for the "https://www.facebook.com/dialog/oauth" URL. This worked for a long time. I was able to log in using other FB user than last logged. (e.g. shared PC) Today I found out that there is no longer possible to change the user. Only re-enter password. Moreover, there is no "Cancel" button (used "dispalay=popup"). I can't find something about it on developers.facebook.com Is anybody know