Page 1 of 1

Sending Tweets

Posted: Sat Apr 13, 2013 4:17 pm
by Glen Gilchrist

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


Sending Tweets

Posted: Sat Apr 13, 2013 4:26 pm
by maxkatz

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.


Sending Tweets

Posted: Sat Apr 13, 2013 4:39 pm
by Glen Gilchrist

Hi

Thanks for that -- The Facebook example looks promising.

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

Cheers
Glen


Sending Tweets

Posted: Sun Apr 14, 2013 2:39 pm
by Glen Gilchrist

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


Sending Tweets

Posted: Mon Apr 15, 2013 2:13 am
by maxkatz

We'll try to post an example...


Sending Tweets

Posted: Mon Apr 15, 2013 8:40 am
by Glen Gilchrist

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


Sending Tweets

Posted: Fri Jul 12, 2013 2:48 pm
by Maryna Brodina

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