Questions tagged [spring-social-twitter]
Spring Social Twitter is a module within the Spring Social family of projects that enables you to connect your Spring application with the Twitter REST API.
67
questions
0
votes
0
answers
37
views
Error resolving template [twitterConnect], template might not exist or might not be accessible by any of the configured Template Resolvers
Ι'm trying to implement ConnectController from Spring Social Twitter. Spring Social Facebook is working fine but when it comes to twitter I get this error error.org.thymeleaf.exceptions....
1
vote
0
answers
346
views
Twitter API - Spring authentication error
REST
I also tried with the postman but it gives the same error
@RestController
@RequestMapping()
public class REST {
@GetMapping("/tweet")
public void noticiaPost(){
...
2
votes
0
answers
198
views
Spring Social Twitter and SSLException
I have some problem with Spring Social Twitter and eventually more things, but i dont know how recognize where the problem is.
I have an simple app with RestControllers. On front user can click "...
1
vote
1
answer
143
views
Tweet with Spring-Social-Twitter Api inReplyToStatus doesn't work
I'm trying to send a Tweet as a response (reply) to another tweet that I found via a query.
But although I'm calling https://docs.spring.io/spring-social-twitter/docs/current/apidocs/org/...
1
vote
1
answer
385
views
Upload chunked video to Twitter with spring-social-twitter / postman
I am currently trying to build an application to post videos to Twitter on behalf of a user.
So I currently have the application-key, application-secret, access-token and access-secret.
final ...
2
votes
0
answers
61
views
direct messaging using spring-social-twitter 1.1.2
I am working on a legacy application that posts Direct Messages to Twitter Users from our product. The API that was used is DirectMessageTemplate.sendDirectMessage(String toScreenName, String text) in ...
0
votes
1
answer
100
views
Integrating spring social with native android app
I am developing an android app with Facebook, Twitter logins and custom posts with these providers. But their callback sequence causes instability in my app. I want to transfer login job. I am curious ...
0
votes
1
answer
126
views
spring social twitter stop streaming operation
I have a little spring application that uses Spring social twitter to stream data from twitter's public API.
The code is very simple. I have a configuration class that expose a bean of type twitter ...
1
vote
2
answers
2k
views
Springboot: Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings?
I created an app in twitter and trying to do basic authentication but I am getting the below error so can anyone help me with this? How to resolve the error?
Callback URL not approved for this client ...
2
votes
0
answers
148
views
@Inject Twitter bean an connectionRepository issue
I'm developing an application which will get data from Twitter.
First I created an application.properties that contains the consumer ID and secret. Second I created a controller and injected Twitter ...
0
votes
2
answers
1k
views
Spring Boot Social Twitter Authentication fails
I have a project on Spring Boot, in which I need to implement authorization via Twitter.
What could be simpler? - I asked myself, and then I got stuck for a few days.
The problem is that the most of ...
12
votes
3
answers
15k
views
Callback URL not approved by Twitter
My application built upon spring-social-twitter that enables users to sign in with Twitter has stopped working recently.
I've got an error message as below:
Callback URL not approved for this ...
1
vote
0
answers
434
views
Consider defining a bean of type 'org.springframework.social.twitter.api.Twitter' in your configuration
So I am following https://spring.io/guides/gs/accessing-twitter/ to connect my application to Twitter to get some user data. But it looks like with recent changes to Spring boot (version 2.0.3.RELEASE)...
3
votes
1
answer
315
views
Twitter template fails during sending direct message, but get rate limit request works
Why direct message is not sent?
spring-social-twitter:1.1.2.RELEASE does not work with spring-web:5.0.6.RELEASE
Example of main class:
package com.test;
import org.springframework.social.twitter....
3
votes
1
answer
2k
views
Twitter Sign in using Spring Boot
I am trying to sign in to my web application (developed using Spring Boot) using social logins. The logins for Google & facebook are okay. But the for some reason there is a token issue in the ...
1
vote
0
answers
190
views
spring-social: SecurityContextHolder.getContext().getAuthentication() returns null
I've been trying to integrate spring-social into our app and am having some difficulty understanding the workflow with regards to who should be setting the access token in the security context. I am ...
4
votes
3
answers
3k
views
Twitter API GET user_timeline reply/comment count
Is there any way to get the comment/reply count for a tweet using GET statuses/user_timeline in addition to favorite_count and retweet_count which are already returned?
Thanks!
1
vote
1
answer
290
views
How to integrate Twitter Login using JWT?
I have some application that works with Spring Boot. This is just login/registration page nothing more.
My JWT Filter
public class JWTFilter extends GenericFilterBean {
private static final ...
1
vote
0
answers
461
views
implementing oauth2 with twitter spring social
I have a REST application developed using spring-social,spring-security (java 8).
The frontend is developed in Angular2. It need to implement oauth2 with various social networks. I am able to ...
0
votes
1
answer
4k
views
java.net.HttpRetryException: cannot retry due to server authentication, in streaming mode
I am trying to get access token and access token secret of a user after authorization. getting this exception when i click on Authorize App. below is the code in callback controller. I have configured ...
0
votes
1
answer
316
views
Spring does not allow to delete some logs (Mongo, Spring-Social-Twitter,...)
Hi everybody. After try a lot of solutions/testing, I come to ask for help.
I've a Java Program, that use spring-social and mongoDB.
However, it's polluted by Spring and Mongo logs :
[main] INFO org....
1
vote
2
answers
265
views
Spring Social Twitter - Exclude retweets
Is there a way in Spring Social Twitter to search for tweets but exclude retweets? Currently I use the search method like this but I finds - of course - also retweeted tweets.
twitter....
1
vote
1
answer
463
views
Spring Social Twitter - Application notified when account is mentioned
I am making a Spring Social Twitter application using Spring Boot. I have already configured a Twitter object using the consumerId, consumerKey, accessToken, and accessTokenSecret.
My question is how ...
0
votes
1
answer
154
views
Specifying since_id w/o max_id for getUserTimeline in Spring Social Twitter
D ear community,
according to Twitter's guidelines on working with timelines it's recommended an application's first request to collect a full timeline omits the max_id parameter (see https://dev....
1
vote
0
answers
356
views
Spring Social -ConnecController connect/twitter not initiating connection with twitter
I have been working on integrating my project with twitter api,
connectController, which i have declared as bean in springsocialconfig, is perfectly handling get requests of /connect/twitter that's ...
0
votes
1
answer
161
views
Spring Social Twitter HTTP Status 405 - Request method 'POST' not supported
Friends I am using Spring Mvc 4.2.5, Spring Security 4.0.4 , Spring Social 1.1.2 to integrate with twitter api.everything is fine upto connectcontroller handling get /connect/twitter,/connect . but ...
1
vote
0
answers
116
views
Spring-social-twitter - How to update view data when StreamListener is invoked?
I am trying to create an application that will display all existing tweets of a particular user as well as new tweets. I am using StreamingOperations API of twitter to get the live tweets. Please see ...
0
votes
0
answers
199
views
C# Spring Social Twitter - Posting Emoji's?
I am using Spring Social Twitter in a project at the moment and everything is going well. Status update's post and there's no issues. I'm not 100% sure if it's possible but does anybody know if you ...
1
vote
1
answer
483
views
Implementation for Implicit social signup in spring-boot project
By adding the spring-social signin / signup to my current spring-boot project, through the implementation of the classes ConnectionSignUp and SignInAdapter, the application, after the authorization ...
1
vote
1
answer
338
views
Twitter raw JSON Spring social Twitter
How to get original JSON data tweet using spring social Twitter API ? There is "Tweet" class, but I didn't find any function that allows to retrieve original tweet content- returned by Twitter in JSON ...
0
votes
1
answer
358
views
Spring Social : Unable to create SocialAuthenticationFilter using xml configuration
I want to add spring social facebook (spring social 1.1.4 and spring social facebook 1.1.1) with spring security 4.0.3 using XML configuration,
I'm unable to add SocialAuthenticationFilter :
&...
0
votes
1
answer
187
views
Able to access my own facebook information but not my friend list information using Spring Social
I had implemented spring controller for fetching all the information about my friend list. The implementation are as follows:
@RequestMapping(value = "/getFbContactList/{accessToken}", method = ...
0
votes
1
answer
59
views
Are the consumer/access tokens and secrets protected via TwitterTemplate?
I am planning on a simple standalone, non-webapp Twitter demo for the purpose of getting my hands wet with spring-social; there is no frontend. For simplicity, everything will be run off method main ...
1
vote
1
answer
771
views
Spring Social Twitter Save Data to MySQL
I'm trying to save some data from the request I made against TwitterAPI. I jknow, that i have to set the objects I want in the UpdateTweetsService Class but I have now idea how i parse them. This is ...
0
votes
1
answer
594
views
Spring Social Twitter
I am new to Spring and trying to make a web application that reads the last 20 tweets of an user with getUserTimeline(screenName);. So far I made this Tutorial from Spring https://spring.io/guides/gs/...
0
votes
1
answer
585
views
How to allow anonymous twitter connections in an MVC configuration
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.
...
4
votes
1
answer
1k
views
How to get location based tweets using Spring social with Twitter Streaming API?
I need to live feed the tweets based on geolocation. By Twitter API documentation I understand we can search based on geolocaion.
But is it possible to stream based on geolocaion? and i use spring ...
0
votes
1
answer
497
views
Spring Social Twitter stream returns HTTP 401 unauthorized
I try to make a stream connection to Twitter using spring-social-twitter, but when I try to make a request I've got 401 unauthorized.
spring-social-twitter is trying to connect to https://stream....
0
votes
2
answers
711
views
How to get providerUserId by providerId, accessToken and secret? (Spring Social)
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 ...
1
vote
1
answer
1k
views
Can you have multiple HttpSessionStrategy?
I would like to have a header based HttpSessionStrategy as listed below however Spring Social seems to want to store the social token on the session.
When it is redirected back to the application no x-...
1
vote
1
answer
1k
views
SpringXD: ClassCastException of same class between modules in a stream
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 ...
1
vote
3
answers
847
views
Friends and Followers in Spring Social
I'm using spring-integration-twitter 4.1.6.RELEASE in my project. Using TwitterTemplate I was trying to get all the friends for the authenticated user.
So im using this method for it ,
friendsList = ...
1
vote
1
answer
108
views
Spring Twitter Integration , Failed to send Status update. Detailed Error: 403:The request is understood, but it has been refused
I am following the Spring Twitter Integration example from Pro Spring Integration book by Mark Lui and Josh Long.
But getting error saying Failed to send Status update. Detailed Error: 403:The ...
3
votes
1
answer
777
views
Why do i get a null connection to twitter with Spring Boot / Spring Social guide example?
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 ...
2
votes
2
answers
149
views
Connecting to twitter using spring social twitter
I am trying this example from Spring IO Guides
which explains how to retrieve list of friends from twitter.
But when I click on Connect to twitter it does not connect to twitter.
I have my appId ...
0
votes
1
answer
297
views
Java -SpringSocial: Getting Twitter data between two dates
I am using spring social to get twitter data for particular tag say #spring.
What I want to achieve is get all data between two dates/timestamp. eg. data between last fetch time and current time. The ...
0
votes
1
answer
433
views
Spring Social java.io.NotSerializableException: org.springframework.social.security.SocialAuthenticationServiceRegistry
I'm trying to use Spring Social to Login via Twitter with Spring Security on Appengine and getting the following exception.
This error appears after redirecting back from twitter with the URL http://...
0
votes
2
answers
342
views
In Spring Social Tweeter, how does JSON become a Tweet, and how does RestTemplate.getObject<T> work?
everybody.
In Spring Social Twitter we use RestTemplate.getObject<T>() to retrieve and deserialize data from the REST endpoint. It does its job and it is very neat! But how does it do that?
...
0
votes
2
answers
127
views
Manually connect to a user's twitter account - Spring Social
I'm running a background task and in this task I want to consult the UserConnection database and manually connect to each user's twitter account and pull some data from twitter using users operation.
...
1
vote
0
answers
316
views
fabicon.ico Or unwanted strings like "6_S3" get appended after the callback url for facebook.twitter login
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 ...