spring-social-facebook

automatic configuration of Spring Social’s ConnectController not working

ⅰ亾dé卋堺 提交于 2019-12-12 01:55:10
问题 I have followed the steps given in the below site to create a simple spring boot application that access the facebook data using maven and spring boot. http://spring.io/guides/gs/accessing-facebook/ which is also same as http://www.technicalkeeda.com/spring/spring-social-facebook-integration-example but in gradle. The problem i am facing is when i am trying to run the application, I have am seeing that url is successfully redirected to "/connect/facebook" but it doesnt load the

How to handle ExpiredAuthorizationException happening in spring social facebook?

风格不统一 提交于 2019-12-11 10:47:54
问题 I was able to use facebook api with Spring Social for a few days (3 months or more), but now the exception "org.springframework.social.ExpiredAuthorizationException: The authorization has expired" is occurring. So I investigated this issue was resolved since the spring social version 1.1.0.M3 through a filter of reconnection but even following the recommendations I have not been able to update the token. How can you recover from this exception? 回答1: After much analyzing the code I ended up

Spring Social Facebook UncategorizedApiException: (#3) Application does not have the capability to make this API call

不想你离开。 提交于 2019-12-11 04:06:39
问题 I have developed a simple web application that accesses Facebook data through Spring Boot (v1.2.6.RELEASE) and Spring Social Facebook (v2.0.2.RELEASE) similar to the example given here I have created a new App in Facebook which use Graph API version 2.5. According to this example i have modified facebookConnect.html putting this different scope to the method POST request: <html> <head> <title>Facebook Extractor</title> </head> <body> <h3>Connect to Facebook</h3> <form action="/recommender

Modifying files from external library in Java

情到浓时终转凉″ 提交于 2019-12-10 13:54:18
问题 I have a Spring Framework project which uses Maven for resolving dependencies. The project has a dependency to another Spring project (Spring Social Facebook), which is used for Facebook login. Suddenly, I started to get a lot of errors because the Facebook login functionality broke due to changes in the Facebook API. The solution is extremely simple but requires a minor change within the external library's files - changing a variable from the type integer to long. Now I know the solution,

Spring Facebook Template map fetchObject to PagedList

夙愿已清 提交于 2019-12-10 11:09:42
问题 I'm using the following approach to return a Facebook user's music preferences: //FIXME: Fetch results in a single operation val likes = facebook.likeOperations().music val artists = ArrayList<Artist>() for (musicLiked in likes) { val musicProfile = facebook.fetchObject(musicLiked.id, Page::class.java, "id", "name", "genre"); artists.add(Artist(name = musicProfile.name, genre = musicProfile.genre)) } The above approach won't scale, since we have an additional network operation for each artist

spring social facebook + api + angularjs (How to call from angular -> spring api -> redirect to facebook login)

爱⌒轻易说出口 提交于 2019-12-08 19:32:00
问题 It might be just angularjs issue! I am very new to the frontend and angularjs. I have an angularjs sign in service which calls the url '/signin/facebook/' to sign in, it seems the backend is redirected correctly and calling the facebook oauth but I got the follow error. [Angularjs sign in service] app.factory('fbSigninService', function($http){ return{ fb_signin:function(scope){ var $promise=$http.post('/signin/facebook/',JSON.stringify(scope)); } } }); [error] XMLHttpRequest cannot load

Fetching data from facebook by Spring social

泄露秘密 提交于 2019-12-07 19:28:21
问题 i am using Spring social for fetching the data from facebook but encountering a weird error org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'homeController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.social.facebook.api.Facebook org.springframework.social.quickstart.HomeController.facebook; nested exception is org

Spring social NoSuchMethodError SocialAuthenticationFilter.getFilterProcessesUrl()

血红的双手。 提交于 2019-12-07 12:08:43
问题 I use spring security login. Now I'm trying to add spring social facebook login, but I get many error information. First, when I try to use the same method like spring social guide, I can't @Autowired private Facebook facebook I found a solution @Bean @Scope(value = "request", proxyMode = ScopedProxyMode.INTERFACES) public Facebook facebook(ConnectionRepository repository) { Connection<Facebook> connection = repository .findPrimaryConnection(Facebook.class); return connection != null ?

Spring boot whitelabel 404

為{幸葍}努か 提交于 2019-12-07 04:51:42
问题 Hello guys I keep getting this error even though I have followed spring tutorial from their website. I have been trying to figure it out why I'm getting this error. I am able to connect to facebook but when trying to retrieve the feeds like the tutorial provided by spring, I keep getting a whitelabel error. It says: This application has no explicit mapping for /error, so you are seeing this as a fallback. There was an unexpected error (type=Not Found, status=404). No message available

fabicon.ico Or unwanted strings like “6_S3” get appended after the callback url for facebook.twitter login

断了今生、忘了曾经 提交于 2019-12-06 14:15:37
问题 I have integrated spring social with my application for login with Facebook and Twitter . Sometime it is working fine and some time it is appending fabicon.ico or some unwanted string like 6_S3 . Can anyone suggest what I am doing wrong? Consider my callback url registered with my app in Facebook/Twitter is myapp.com/ and in case of appending the fabicon / 6_S3 it is returning myapp.com/fabicon.ico or myapp.com/6_s3 My web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4"