Glen Gilchrist
Posts: 0
Joined: Sat Apr 13, 2013 4:17 pm

Sending Tweets

Hi

Noob-ish question I suspect - so please be gentle.

I am trying to make a very locked down Twitter client by modifying the Search Tweets demo.

I have hardcoded the demo file to only display tweets containing "#HWB" in the text -- this works well.

I now want the user to be able to send a tweet that automatically includes the #HWB hashtag (and it cant be removed).

I am trying to achieve a twitter client (basic) that will only show and tweet to a particular hash tag.

Now, I know the Twitter API involves oAuth - and at that point I get totally lost.

Any chance that someone could give me the lowdown on how to modify the demo to autually Tweet back -- OR is this a much bigger issue?

Cheers
Glen

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Sending Tweets

To send tweets, you do need to sign in into Twitter and use oAuth. We don't have an example specific to Twitter. In general, every oAuth flow is similar. You could look at Facebook, AT&T or Salesforce examples to help you. AT&T and Salesforce are plug-ins.

Glen Gilchrist
Posts: 0
Joined: Sat Apr 13, 2013 4:17 pm

Sending Tweets

Hi

Thanks for that -- The Facebook example looks promising.

Will feedback here when (if) I get it to work.

Cheers
Glen

Glen Gilchrist
Posts: 0
Joined: Sat Apr 13, 2013 4:17 pm

Sending Tweets

Hi Max

Thanks for the help -- I have worked through the Facebook example and it makes sense.

Now I turn to Twitter and its Dev dos.

Whilst I can create the App in Twitter and get the necessary keys - beyond that the Twitter API docs, wonderful as they are - seem impenetrable to me, with no example code to follow.

I know I need to generate a time stamp and unique oauth_nonce key -- fine with that.

Now it starts talking about encoding and signatures for the Tweets. So I turn to external library to do all that - and end up with PHP and https://github.com/abraham/twitteroauth (again OK ish)

Again, this looks good and I can make that example work with the Twitter API.

What is beyond me is linking it all together to make the demo Twitter app send tweets.

I don't want to abandon this project as I believe where this is going has mileage - but I have no thoughts on what to do next.

Is there any chance that a basic example could be made by the Tiggzi developers on actually sending a Tweet? I know its a big ask. ;-)

Cheers
G

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Sending Tweets

We'll try to post an example...

Glen Gilchrist
Posts: 0
Joined: Sat Apr 13, 2013 4:17 pm

Sending Tweets

Appreciate it - keen to use the platform as it offers a good balance over convenience / ease / utility of application and price.

Will feedback and spread the love.
Cheers
Glen

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Sending Tweets

Hello! Good news:) Here is "Building a Twitter App to Send Tweets" tutorial http://docs.appery.io/tutorials/build...

Return to “Issues”