foolishly I had not included a value to the "Callback URL" when registering my app on Twitter. After adding a place-holder URL it is now working fine. And as to be expected the actual callback URL used is the value submitted as "applicationURL". Thanks, I hope this help someone else....
java,jsp,jboss5.x,spring-social,tomee
For those who are interested, I simply extracted the .tld file from the jar and put it under my WEB-INF directory and it solved the problem. I still don't know why TomEE was unable to resolve it when it was inside the jar.
spring-mvc,twitter,spring-social
If you are using version 1.0.5 of spring-social-twitter - TwitterTemplate will allow a few simple operations that do not require authorization, such as searching. You need to create an instance of TwitterTemplate without passing in any oauth parameters. http://docs.spring.io/spring-social-twitter/docs/1.0.5.RELEASE/reference/html/apis.html...
java,spring,log4j,spring-social,spring-social-facebook
I managed to solve this after a lot of trial and error. It turned out that my project dependencies were incorrect, and the logging by Spring Framework was not correctly sent to log4j via slf4j. I used the following Maven dependencies: <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> <version>2.2</version> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId>...
facebook,spring-mvc,facebook-graph-api,twitter,spring-social
If i am understanding this correctly a very similar scenario is covered in the spring social sample project: https://github.com/spring-projects/spring-social-samples Once a user is logged into your webapp They would need to connect to Facebook via spring social (Spring social connect controller would handle this). They would need to authorize your...
A couple of things I notice... First, why are you writing your own controller for performing the OAuth dance instead of using ConnectController that Spring Social provides? ConnectController can handle all of the redirects for you and has been part of Spring Social from the beginning. Spring Social Showcase (https://github.com/spring-projects/spring-social-samples/tree/master/spring-social-showcase)...
facebook,spring,spring-mvc,spring-social
Here is one that we found to work and is simple enough to understand. http://www.petrikainulainen.net/programming/spring-framework/adding-social-sign-in-to-a-spring-mvc-web-application-configuration/ The site has multiple categories of Spring Social as well http://www.petrikainulainen.net/spring-social-tutorial/ If you still have issues, paste your code and error in the question to help figure them out....
spring,spring-mvc,spring-social
The problem was that I wasn't returning null from the SignInAdapter method signIn. You have to return null there for ProviderSignInController to use postSignInUrl. I've written my own social controller based on ProviderSignInController now, which works better for me....
spring,spring-mvc,glassfish,spring-social
Just a guess, but do you happen to have any views (JSP, Thymeleaf, or otherwise) at "connect/{providerId}Connect" or "connect/{providerId}Connected"? Do you have a view at "connect/status" ? If not, then that's one possibility for the 404s. The controller method answering at the "/connect" path collects connection status information for all...
java,spring,spring-boot,spring-social
This is not currently possible I'm afraid because, as you rightly pointed out, it's hardcoded in Spring code. Check the official response Spring forum If you don't want to replicate code, you must stick to spring's default table name. This is what I did in my project. Cheers....
java,spring,spring-security,spring-social
While using spring-social to login to google via oauth the following is necesary <form name="go_signin" id="go_signin" action="<c:url value="/signin/google"/>" method="POST"> <button type="submit">Sign In with Google</button> <input type="hidden" name="scope" value="https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo#email https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/tasks https://www-opensocial.googleusercontent.com/api/people" />...
java,spring,facebook-graph-api,spring-social,spring-social-facebook
Check if you're using the most recent version of Spring Social. The profileUrl should nowadays have the scheme https://www.facebook.com/app_scoped_user_id/{app_scoped_user_id}/ where {app_scoped_user_id} is the actual app-scoped user id. See https://developers.facebook.com/docs/apps/changelog#v2_0_graph_api ...
twitter,spring-social,spring-social-twitter
You can use Spring social twitter advanced search. http://docs.spring.io/spring-social-twitter/docs/1.0.5.RELEASE/api/org/springframework/social/twitter/api/impl/SearchParameters.html It has two parameters since and until. These can be used to retreive based on date / time period....
spring,github-api,spring-social
Spring Social is separated into different Projects which you can find if you follow the link above. This is the core module with the following maven dependency: <dependencies> <dependency> <groupId>org.springframework.social</groupId> <artifactId>spring-social</artifactId> <version>1.1.0.RELEASE</version> </dependency> </dependencies> There is also spring social facebook with the following maven dependency: <dependencies> <dependency>...
spring-social,broadleaf-commerce
After days of effort finally got to know the issue. The problem was version of spring social api. Since the post i was referring to was of sept,2012 as a result i was using 1.0.2-Release which used auth1.0 to connect to twitter but in 2013 twitter started using auth1.1 whose...
facebook,grails,spring-security,spring-social
The documentation for the 'email' field of the 'user' object ( https://developers.facebook.com/docs/reference/api/user/ ) clarifies the expected behaviour here, which is: "this field will not be returned if no valid email address is available" There is a detailed explanation about different situations where an email won't be sent. Please check it...
java,spring,proxy,spring-social
It was very stupid mistake cost many hours. May be it would be helpful for somebody. To configure spring-social needed configuration class like: @Configuration @EnableSocial public class SocialConfig extends SocialConfigurerAdapter { ... } there are number of methods, one of which is @Override public void addConnectionFactories( ConnectionFactoryConfigurer cfConfig) { TwitterConnectionFactory...
spring,twitter,spring-social,spring-social-twitter
After pulling the connections from the database, all I had to do was create a Twitter from TwitterTemplate. List<Connection> connections = connectionRepository.findAllConnections(); for (Connection conn : connections) { Twitter twitter = new TwitterTemplate(twitterAppKey, twitterAppSecret, conn.getAccessToken(), conn.getSecret()); //now I can run the operations System.out.println(twitter.userOperations().getScreenName()); } ...
spring,authentication,spring-social
I'm not sure I understand the question, but let me try to answer anyway. The OAuth flow requires that the user be authenticated against the provider before they can authorize the app and before the app can receive a token. I the user isn't authenticated against the provider, the provider...
I ran into the same problem. After some investigation I found out the problem is in the callback url. Spring social sets this to yourap/signin/twitter. For facebook and linkedin this is fine, but for some reason twitter nees a filled in callback url in the application settings as well. So...
facebook,facebook-graph-api,spring-social,spring-social-facebook
No, you can only search by name, but not by email: https://developers.facebook.com/docs/graph-api/using-graph-api/v2.2#search...
facebook,spring,rest,spring-security,spring-social
You have an AuthenticationFilter that listens to url j_spring_security_check Filter creates an authentication object and sends to Authentication Provider. AuthenticationProvider calls UserDetailsService to load user by username and authenticate the user. Filter then checks the authentication object returned by the provider and sends request to success/failure handler. When you...
facebook-graph-api,spring-security,spring-social,spring-social-facebook
no help from stackoverflow: but actually I got the solution , may it help someone else, thus posting the same: add this in your social-xml config to initialize FacebookApiHelper <bean id="facebookApiHelper" class="org.springframework.social.facebook.config.support.FacebookApiHelper"> <constructor-arg index="0" ref="usersConnectionRepository"/> <constructor-arg index="1" ref="userIdSource"/> </bean> Then use the same in ur contoller to work with existing...
spring,spring-mvc,spring-boot,spring-social,spring-social-facebook
I finally got the answer. it is we need to additional parameter in the application.properties file which is "spring.social.auto_connection_views=true along with the id and secret. spring.social.facebook.appId= spring.social.facebook.appSecret= this property was not mentioned in the tutorials. finally this worked. :) "...
Looking at the source of ProviderSignInUtils, I found that it uses a SessionStrategy which you might want to configure when instantiating the ProviderSignInUtils bean. So, I guess Spring team is deprecating the static methods. I wanted to go with the default, and so just instantiated it with the default constructor....
java,spring,spring-mvc,spring-social,spring-social-facebook
In your configuration you are using a StaticUserIdSource judging from the name it uses a predefined user-id. As soon as you have registered a user with the given id (after the first authentication with Facebook that is) that will be used for all other users.
xml,facebook,spring,twitter,spring-social
At least I figgured out, I remove this /WEB-INF/spring/root-context.xml from my web.xml and I import the social.xml and secuirty.xml at the end of spring-config.xml and now again everithyng works fine. I think something was needed from my spring-config.xml and separated the program did not see.
java,spring-social,spring-social-facebook
From version 2.0.x you can get the cover image using facebook.userOperations().getUserProfile().getCover() See javadoc...