I have been trying to authenticate users using twitter-omniauth gem for last days, yet not successful. (Authentication with facebook works perfectly)
I'm keep getting 401 Unauthorized error.
I search through stackoverflow, but none of the answers…
I've found a couple of different twitter gem (for ruby-on-rails) out there:
http://twitter4r.rubyforge.org/
http://twitter.rubyforge.org/
But I'm wondering if someone can rate them and provide a recommendation of either one or a new one.
Thanks
What should be the format for the parameter: media , in the call below, for updating with multiple images.
def twitter_status_update_with_media (twitter_client, text, media, opts)
twitter_client.update_with_media(self.text, media,…
This is probably a terribly simple question but i can't figure out how to render an embedded tweet.
For simplicity, this is my controller:
class TweetsController < ApplicationController
def index
@tweet =…
Jnunemaker just updated his twitter gem (https://github.com/jnunemaker/twitter) and removed the Twitter::Oauth class. My code doesn't look much like his example, so I'm having issues updating it. Here's what my code used to look with the twitter 0.9…
My twitter controller code is this
class TwitterController < ApplicationController
before_filter :authenticate_user!
def index
unless TwitterOauthSetting.find_by_user_id(current_user.id).nil?
redirect_to "/twitter_profile"
end
…
I have an instance of Twitter::Tweet, which does not have a method retweet.
( http://www.rubydoc.info/gems/twitter/Twitter/Tweet )
However, Twitter::REST::Tweets does have a method I can use to retweet.
(…
I have a registered app on Twitter and am able to post to my twitter feed. However, I can only get it to work when I put the initializer in my controller's create action.
client = Twitter::REST::Client.new do |config|
…
I have a Tweet object from the twitter gem, called @tweet.
I am able to do:
@tweet.created_at --> `@tweet.created_at.class` outputs `Time`
However, I want to change the timezone of created_at, so I tried:
@tweet.created_at.utc
And got:
can't…
I am using sferik gem to get tweets.
I want to pass following extra parameters to method "user_timeline":
count, include_rts and exclude_replies
Is it possible to pass these in as parameters?
If yes, how can I pass these extra parameters to…
I want to use v5.0 of the Twitter gem, and I can't figure out the documentation to understand how to get a list of followers, given a handle.
It looks like previous versions had a method that looked something like Twitter.follower_ids('ID to…
I’m trying to use twitter gem and getting
Faraday::Builder is now Faraday::RackBuilder
when I run the code. Anybody else got this or have idea how to resolve it
I'm using the Twitter gem to authenticate and share content to twitter.
I need to include an image as well so I'm using the "update_with_media" method, like so:
def tweet
client = Twitter::REST::Client.new do |config|
config.consumer_key …
client = Twitter::REST::Client.new do |config|
config.consumer_key = "XX"
config.consumer_secret = "XY"
config.access_token = "ZZ"
config.access_token_secret = "ZZZ"
end
How can I retrieve my profile information?