spring-social-twitter

SpringXD: ClassCastException of same class between modules in a stream

五迷三道 提交于 2019-12-25 07:52:02
问题 I have a custom Spring XD source module that uses Spring Social for Twitter and outputs Tweet objects. This is working just fine. I can log the output of the source and see the Tweet objects listed. I can change the output type of the source for that stream to application/json to see the output at JSON. This works as expected. I then created a processor module that will create a new object from that Tweet and output it. The transform message expects a GenericMessage containing a Tweet object

Spring for Android Build Failing when Including spring-social-twitter

◇◆丶佛笑我妖孽 提交于 2019-12-25 04:26:41
问题 On Android Studio 0.8.2, I am trying to create an app that integrates with Twitter using Spring. Had innumerable build problems until I created a blank activity that I'm just using the test my Gradle build. Every time I try to connect to spring-social-twitter, the build fails. If I comment out the Twitter dependency, the app compiles. I'm pretty sure this has nothing to do with the app itself, because I'm testing it on a blank app. What am I doing wrong? My build.gradle file: apply plugin:

How to get providerUserId by providerId, accessToken and secret? (Spring Social)

纵然是瞬间 提交于 2019-12-13 07:27:35
问题 In my application I can identify user by providerId and providerUserId. But initially, I have only following information: providerId, accessToken, secret. Thus, I need to acquire providerUserId by this information. I'm trying to use following code: ConnectionData connectionData = newConnectionData(providerId, accessToken, secret); ConnectionFactory<?> connectionFactory = connectionFactoryLocator.getConnectionFactory(providerId); Connection<?> connection = connectionFactory.createConnection

Why do i get a null connection to twitter with Spring Boot / Spring Social guide example?

≯℡__Kan透↙ 提交于 2019-12-12 13:16:34
问题 I followed the instructions on the spring.io site: http://spring.io/guides/gs/accessing-twitter/ And I'm not getting a connection. The "findPrimaryConnection()" call is returning null. I'm not seeing any exceptions thrown. I did set the appId and appSecret in the .properties file. Here is the controller code: @Controller @RequestMapping("/") public class HelloController { private Twitter twitter; private ConnectionRepository connectionRepository; @Inject public HelloController(Twitter twitter

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"

How to allow anonymous twitter connections in an MVC configuration

帅比萌擦擦* 提交于 2019-12-03 23:13:45
问题 Using - spring-social 1.1.4 - spring-social-twitter 1.1.2 - spring-mvc-4.2 - on tomcat 7 Below is my tomcat config for my MVC Application including twitter set up and usersConnectionRepository. This is all working fine for the logged in MVC user. The problem for me arises when I want to allow clients to tweet from a public link available to non MVC authenticated users. (#{request.userPrincipal.name} will be null) I have looked through many examples. Most examples use old 1.0.0 spring-social.