Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Twitter, among other OAuth providers, can supply long-term access tokens for use with their API.
We need to support this option, by storing these tokens in the importer settings for example.
Comments
Comment #1
chrsnlsn CreditAttribution: chrsnlsn commentedHey thanks for your work!
I like many others are scrambling to get some feeds up and running again that relied on Twitter very easy http://search.twitter.com/search.rss that recently went away.
I read your article here
http://thereisamoduleforthat.com/content/consuming-new-twitter-11-api-fe...
and was wondering if you could elaborate on this step
"I manually added an entry to the feeds_oauth_access_tokens table, with the tokens that were handed to me by Twitter on my application page"
Sounds like a good work-around until this issue's functionality gets implemented into the module.
[edit] Mostly just what are good values to put in the fields that aren't token and token_secret
Comment #2
infojunkieI just inserted a new record in the
feeds_oauth_access_tokens
table that Feeds OAuth uses to check for existing tokens. The contents I inserted were:* uid => the Drupal uid corresponding to the Twitter user doing the API calls
* oauth_token, oauth_token_secret => the values given to you by Twitter on your app page in the "Your access token" section
* site_id => the Feeds OAuth site id as specified on the importer settings page
All the rest can be left as default. Hope this helps!
Comment #3
chrsnlsn CreditAttribution: chrsnlsn commentedCool think I got that part working. No more error messages, but I keep getting 'no new nodes' though when I import, where's the best place to output the JSON results coming back from twitter?
{edit} found it please ignore.
Comment #3.0
chrsnlsn CreditAttribution: chrsnlsn commentedClearer wording
Comment #4
infojunkieThis can be implemented by introducing a new module feeds_oauth_tokens (within feeds_oauth) that does the following:
* Allow admin to enter site-wide access tokens (per site_id)
* Allow users to enter their personal access tokens (per site_id)
* Implement
hook_feeds_oauth_authenticator
to return above tokens