Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.46 KB

supporting-twitter.md

File metadata and controls

30 lines (23 loc) · 1.46 KB

Supporting Twitter

Feedbin supports subscribing to Twitter as a data source. You don't have to do anything to support Twitter, but if you want to provide a tailored Twitter experience, Feedbin provides the data to help make that happen.

The Twitter terms of service do not allow their API data to be redistributed, but there is a straightforward way to get full tweet data.

  1. Register your app on the Twitter developer site.
  2. Build a Twitter authentication flow in your app so you can get Twitter data on behalf of the user.
  3. Use the extended mode when fetching entries from Feedbin to get the data necessary to load tweets.
  4. Use Twitter's statuses/lookup API to bulk load tweets by ID.

Getting Twitter IDs from Feedbin

Load entries using the extended mode. You'll get the twitter_id and twitter_thread_ids as well as the normal entry data. Then you can load tweets by id, 100 at-a-time, from Twitter.

GET /v2/entries.json?mode=extended
{
    "id": 1682191545,
    "feed_id": 1379740,
    ...
    "twitter_id": 973315765393920000,
    "twitter_thread_ids": [973315765393920000, 973315765393920001],
    "extracted_articles": []
}