Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto follower [Follow for Follow] #6

Open
vinitshahdeo opened this issue Oct 1, 2019 · 6 comments · May be fixed by #19
Open

Auto follower [Follow for Follow] #6

vinitshahdeo opened this issue Oct 1, 2019 · 6 comments · May be fixed by #19
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest Send PR and earn a free t-shirt help wanted Extra attention is needed up-for-grabs Solve the issue and raise your first PR

Comments

@vinitshahdeo
Copy link
Owner

Add a feature to automatically follow any users that follow @Quotter

Please refer Twitter API

Note - Make only required changes and ensure that the existing functionality of code shouldn't break.

@vinitshahdeo vinitshahdeo added hacktoberfest Send PR and earn a free t-shirt good first issue Good for newcomers help wanted Extra attention is needed enhancement New feature or request labels Oct 1, 2019
@vinitshahdeo vinitshahdeo added the up-for-grabs Solve the issue and raise your first PR label Oct 4, 2019
@kousiksatish
Copy link

I will work on this!

@vinitshahdeo
Copy link
Owner Author

@kousiksatish Yes, please go ahead!

@kousiksatish
Copy link

@vinitshahdeo Is it possible to do this using basic Twitter API. I am reading that twitter officially doesn't allow automated following / bulk following.
https://follows.com/blog/2016/10/follow-twitter-back-automatically

@kousiksatish
Copy link

Just noticed this https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/post-friendships-create . Will trying using this.

@kousiksatish
Copy link

@vinitshahdeo Should we

  1. use account activity API to subscribe to follow event webhooks and perform the follow back
    OR
  2. Execute a function in regular frequency to follow back users who have newly followed us.

@kousiksatish kousiksatish linked a pull request Oct 10, 2019 that will close this issue
@kousiksatish
Copy link

I have implemented a basic function for the second approach. This function will check followers and people who we are following and follow back someone whom we are not following already.

There are few tasks left to implement in this function

  • Check cases of no friends, no followers
  • Check flags like user.following and user.follow_request_sent to check status of whether follow was successful
  • Check cases where follow requires approval
  • Check efficient ways to handle all errors that can occur during follow post call
  • Twitter has "400 per user; 1000 per app" limitation per user. Need to review response message in this case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest Send PR and earn a free t-shirt help wanted Extra attention is needed up-for-grabs Solve the issue and raise your first PR
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants