spring-social-facebook

Converting Json to java objects using Google's Gson

情到浓时终转凉″ 提交于 2019-12-01 16:56:05
I am using Spring Social FqlQuery to get data's from facebook. Here is the JSON response I am getting from facebook. My controller where i am getting Json output is here, fql = "SELECT work FROM user WHERE uid = me()"; facebook.fqlOperations().query(fql, new FqlResultMapper<Object>() { public Object mapObject(FqlResult result) { List list = (List) result.getObject("work"); for (Object object : list) { JsonHelper jsonHelper = new JsonHelper(); Gson gson = new GsonBuilder().setPrettyPrinting().create(); String jsonOutput = gson.toJson(object); System.out.println(jsonOutput); gson.fromJson

Facebook Graph API rejects newly created access token

∥☆過路亽.° 提交于 2019-11-29 22:55:45
Earlier today, the Facebook login flow of our web application stopped working for some users. When we try to fetch the current profile, an error is returned. It claims that the access token we just generated by redirecting the user to the OAuth login flow has been rejected. The reason given is: The access token is invalid since the user hasn't engaged the app in longer than 90 days To me, this makes no sense since we do not store the access token anywhere except for the current session and recreate it every time the user logs in with Facebook. The stacktrace from Spring Social for the GET /me

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

萝らか妹 提交于 2019-11-28 13:35:15
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> <artifactId>spring-social-core</artifactId> <version>1.1.2.RELEASE</version> </dependency> <dependency>

What could cause the original 'OAuth2' state parameter to be null in org.springframework.social.connect.web.ConnectSupport?

限于喜欢 提交于 2019-11-28 13:28:37
I am trying to use Spring Social on my application and I noticed while debugging that the original 'OAuth2' state parameter is always null on my app. See Spring Social source code for org.springframework.social.connect.web.ConnectSupport below: private void verifyStateParameter(NativeWebRequest request) { String state = request.getParameter("state"); String originalState = extractCachedOAuth2State(request);//Always null... if (state == null || !state.equals(originalState)) { throw new IllegalStateException("The OAuth2 'state' parameter is missing or doesn't match."); } } private String

What has happened with the class org.springframework.social.connect.ConnectionRepository in Spring Social 3.0.0.M1?

杀马特。学长 韩版系。学妹 提交于 2019-11-28 09:25:00
问题 I am a beginner with the Spring Framework and wanted to try out Spring Social to make a simple web application which retrieves data from Facebook. For this I followed Spring Socials official " Getting started guide " called " Accessing Facebook Data ". The first problem I encountered was that the Spring Social version 2.0.3.RELEASE , which seems to be the latest official version of Spring Social, does not support version 2.8 of the facebook API (and therefore gives me the following error: " (

Spring Social Authentication Filter for Stateless REST Endpoints which use Facebook Token for authentication

孤人 提交于 2019-11-27 08:46:56
I would like to use Facebook Tokens for authenticating my REST backend using Spring Security . Could you please elaborate how I can integrate this security to my Spring Application. I would like to use the same user management as Spring Social Security does. UserConnection table and local user table. You can download the code sample from : https://github.com/ozgengunay/FBSpringSocialRESTAuth We have been looking for a "Spring" solution which secures our REST backends using Facebook OAuth Token that REST clients already have in hand. For example: You have a mobile app with Facebook Connect SDK

What could cause the original 'OAuth2' state parameter to be null in org.springframework.social.connect.web.ConnectSupport?

风格不统一 提交于 2019-11-27 07:41:10
问题 I am trying to use Spring Social on my application and I noticed while debugging that the original 'OAuth2' state parameter is always null on my app. See Spring Social source code for org.springframework.social.connect.web.ConnectSupport below: private void verifyStateParameter(NativeWebRequest request) { String state = request.getParameter("state"); String originalState = extractCachedOAuth2State(request);//Always null... if (state == null || !state.equals(originalState)) { throw new

Error message is (#12) bio field is deprecated for versions v2.8 and higher

萝らか妹 提交于 2019-11-27 04:12:55
I used version 2.0.3.RELEASE of spring-social-facebook and Facebook app api v2.8. I called Facebook login but returned this message. "(#12) bio field is deprecated for versions v2.8 and higher" How can i fix this? user6904265 I got the same error, 2.0.3.RELEASE of spring-social-facebook seems to be not compatible with v2.8 Facebook API version (released yesterday). Reading from facebook changelog for the v2.8 ( https://developers.facebook.com/docs/apps/changelog ): User Bios - The bio field on the User object is no longer available. If the bio field was set for a person, the value will now be

Spring Social Authentication Filter for Stateless REST Endpoints which use Facebook Token for authentication

社会主义新天地 提交于 2019-11-26 17:47:17
问题 I would like to use Facebook Tokens for authenticating my REST backend using Spring Security . Could you please elaborate how I can integrate this security to my Spring Application. I would like to use the same user management as Spring Social Security does. UserConnection table and local user table. 回答1: You can download the code sample from : https://github.com/ozgengunay/FBSpringSocialRESTAuth We have been looking for a "Spring" solution which secures our REST backends using Facebook OAuth

Error message is (#12) bio field is deprecated for versions v2.8 and higher

落爺英雄遲暮 提交于 2019-11-26 13:49:18
问题 I used version 2.0.3.RELEASE of spring-social-facebook and Facebook app api v2.8. I called Facebook login but returned this message. "(#12) bio field is deprecated for versions v2.8 and higher" How can i fix this? 回答1: I got the same error, 2.0.3.RELEASE of spring-social-facebook seems to be not compatible with v2.8 Facebook API version (released yesterday). Reading from facebook changelog for the v2.8 (https://developers.facebook.com/docs/apps/changelog): User Bios - The bio field on the