spring-social-facebook

App domains must match the domain of the Facebook Web Games URL (https), Mobile Site URL, Unity Binary URL, Site URL or Secure Page Tab URL

偶尔善良 提交于 2020-05-10 06:54:58
问题 I am developing Spring Boot + Facebook Integration example. In this example, I've created an at app https://developers.facebook.com/. The screen shot of the created app shown below. Also when I was passing the Domain name I am getting the below error: App domains must match the domain of the Facebook Web Games URL (https), Mobile Site URL, Unity Binary URL, Site URL or Secure Page Tab URL. Please correct these domains: localhost I am using the same code mentioned in the URL blocked: This

Spring Social Facebook: How to get big photo from Post?

拥有回忆 提交于 2020-01-14 09:35:23
问题 The Post object has a property getPicture(). This contains an url to a very small (130 × 130) image. How to get the big picture of a Facebook post? Sample url: https://scontent.xx.fbcdn.net/v/t1.0-0/s130x130/13173717_10209376327474891_7842199861010585961_n.jpg?oh=d244df2db666e1d3be73cb7b76060337&oe=57A64C44 It does not help to replace the s130x130 in the url because that won't work in the new Graph API. I tried to use graphApi.mediaOperations() but I don't see a method that accepts a postId.

URL blocked: This redirect failed because the redirect URI is not white-listed in the app's client OAuth settings. Make sure that the client and web

时光总嘲笑我的痴心妄想 提交于 2020-01-07 05:05:12
问题 I am developing spring-social-login using Spring Boot . In this example, I have created App on the https://developers.facebook.com. When I am trying to login using the Facebook into my application, I see the below error comes. Why ?? URL blocked: This redirect failed because the redirect URI is not white-listed in the app's client OAuth settings. Make sure that the client and web OAuth logins are on and add all your app domains as valid OAuth redirect URIs. Facebook login setting: And below

Authentication vs. Authorization in Spring-Social 1.1.X via OAuth2 E.G. Facebook

被刻印的时光 ゝ 提交于 2020-01-06 07:02:08
问题 I'm using Spring Social Release 1.1.4 . I've found this blog post about Authentication not being Authorization. https://www.scottbrady91.com/OAuth/OAuth-is-Not-Authentication Then I'm trying to use Authentication to identify a user. I'd like to in my case identify the user and get the Facebook user id. I don't need the social profile or anything else. How do I do this properly in Spring Social 1.1.4? 来源: https://stackoverflow.com/questions/57899478/authentication-vs-authorization-in-spring

How to sign up new user via Spring Social Facebook?

谁说我不能喝 提交于 2019-12-23 10:57:50
问题 I am having a website (Angular App) which I can reach on https://localhost:4200 and a server (pure REST API) that is on https://localhost:8443. Since the REST endpoints are secured, a user must login on my server. Obviously I want users to be able to signup using Facebook and further communicate with my server after login. According to the docs POST /signin/{providerId} - Initiates the sign in flow. that is why there is a button that does just this: <form ngNoForm name="fb_signin" id="fb

Integrate Spring Security with Facebook Login

做~自己de王妃 提交于 2019-12-21 05:22:07
问题 I use Spring MVC and Spring Security for my project.. This using my own user data for authentication. But now i trying to integrate with Facebook. i have created app on Facebook means i got Client ID and client Secret.. I also read some questions in SO and some documents but still stuck... i create controller to Login with Facebook : import java.util.List; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation

Facebook Login with Spring Social using Existing User Access Token

青春壹個敷衍的年華 提交于 2019-12-20 09:18:26
问题 Here's what I currently have: Spring REST service where many of the APIs require the user to be authenticated A 'registration' API (/api/v1/register) A 'login' API that takes username/password (/api/v1/login) 'Facebook Login' API that relies on Spring Social and Spring Security to create a User Connection and log my user in (/auth/facebook) My problem is that I want these APIs to be used by multiple clients, but the way Facebook Login is right now, it doesn't work well on mobile (works great

Spring Social Facebook: “The OAuth2 'state' parameter doesn't match”

别来无恙 提交于 2019-12-19 05:08:31
问题 I am using Spring Social Facebook within a Spring MVC project to support Facebook login. This is working well in almost all cases, but occasionally I see the following exception in the logs. ERROR org.springframework.social.connect.web.ProviderSignInController - Exception while completing OAuth 2 connection: java.lang.IllegalStateException: The OAuth2 'state' parameter doesn't match. at org.springframework.social.connect.web.ConnectSupport.verifyStateParameter(ConnectSupport.java:173) at org

Spring social facebook login error - Numeric value out of range of int

隐身守侯 提交于 2019-12-17 21:01:52
问题 I have a problem using Spring Social, when I tried to login to Facebook, I get the following error: org.springframework.social.facebook.api.User["video_upload_limits"]->org.springframework.social.facebook.api.VideoUploadLimits["size"]) com.fasterxml.jackson.databind.JsonMappingException: Numeric value (2505397589) out of range of int Thanks in advance for any help. maven dependencies: Spring 4.2.0.RELEASE <!-- Spring Social --> <dependency> <groupId>org.springframework.social</groupId>

Spring Oauth 2 Facebook Authentication Redirects User To My Home Page

牧云@^-^@ 提交于 2019-12-14 03:09:19
问题 I am trying to redirect a user who have been authenticated to another page other than the home page. I am using spring boot 1.5.6 and Oauth 2. User is authenticated but was redirected to the home page. I don't understand why this is happening. Please, someone should help me. Some answers to related problem on stackoverflow and the internet didn't help me. Here is my SecurityConfig file @Configuration @EnableGlobalAuthentication @EnableOAuth2Client @EnableGlobalMethodSecurity(prePostEnabled =