Changes to twitter API - twitter

Just looking for some clarity on the new Twitter API changes coming in if anyone could help out please-
Do the API changes affect how I go about placing for e.g. the top 5 tweets from my timeline onto my site. I've used some quick javascript techniques before to do this but does the new authentication mean I have to go through PHP Oauth or similar in order to do the same thing? Would it break previous setups I have done before?
I've used this code before:
http://pastebin.com/hFZhfavk
And then just your username in here:
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/USERNAME.json?callback=twitterCallback2&count=2"></script>
Had a look through some of the documentation on the changes but not sure if its just for application stuff or if it affects the likes of what I'm doing aswell.
All help much appreciated! And if anyone could point me in the direction of some good tutorials/info if the set up is different that'd be great too.
Thanks for your time
/* ed */
I've since set up Twitter Oauth in PHP using #abraham's setup. Everytime I load the test page I get asked to sign into Twitter - is that the way twitter feeds are gonna have to be on sites now with the new rules? Still a little confused if anyone has any insight it'd be much appreciated!

I know this is an old question, but the answer is yes - all Twitter API 1.1 calls have to be authenticated. API 1.0 has been switched off permanently. |
This should explain all: https://dev.twitter.com/blog/api-v1-is-retired

Related

Rails app for food truck, using twitter to update the google map.

So I am writing a rails application for my friends food truck business.
The functionality that I am trying to create with this specific application is the ability for him to update the google map by posting a Geo-location tag on twitter.
A lot of the ruby gems that deal with google maps seem to be depreciated so I'm a bit lost at the moment. If anyone could just point me in the correct direction I would appreciate it.
I realize that this feature is just a quality of life feature but id like to be able to do it with embedded ruby and not have to break out the JavaScript (ugh). Ideal this kind of automation would be great for this particular type of website because my friend won't always have access to the back-end of the website when he is on the move. (Already able to update a map from an admin backend but its not good enough for a business that moves multiple places in a given day.)
anyways, thanks in advance. (if anyone wants me to post any of my code I will.)
So after reading your question, I thought it would be fun to tinker with the Twitter API again since I haven't used it in a while.
I went ahead and created a sample application for you that basically does what you were asking for. It looks for recent tweets from a user, grabs the latest one, then updates a Google map with a marker on that location.
Keep in mind that this was quickly thrown together, so it's far from perfect. But all the concepts should be there!
Feel free to reach out if you have any questions about the app or anything else. I'm always happy to help.

Twitter for beginner

I want to make a small application (desktop/laptop for beginners) such that I can login to my twitter account and the application can tweet for me, lets say i can pass the tweet as an argument for the app.
So let us say that if I make the app in Java, basically it can be a function like:
LoginToTwitter(username, password) {
someLoginApi(); // is there any apis exposed by twitter
}
Tweet(String Tweet) {
someApiTweet();
}
I did some research on this. Found a framework fabric. But it seems it is a plugin to tweet from a website. But I want to make a simple app to do it from my laptop for example.
I also went through a lot of previous question asked on this. But I could not really find this.
If anyone can guide me to the question which talks about this or any resource that I can look upon to solve this problem, it will be great help!
Thanks a ton
Regards
Ankur
Here's the full working code that sends tweets to Twitter using Php. Hope it helps!
LINK

how to get twitter feeds in shopify

I am trying to get twitter feeds in to my shopify site. I want to get the feeds and style them as I want and thus cant use a app.
I know how to do it using PHP but can not use that code in shopify and looking for a way I can use OAuth in shopify and get the feeds. I tried the shopify docs but without an example its kinda hard to actually get my head around it.
http://docs.shopify.com/api/tutorials/oauth
Thats the link I am using as a guide. If anyone can direct me to an example which might be similar that would be awesome. (google didnt seem to be that helpful this time either)
Cheers
I know you said you didn't want to use an app, but can I suggest taking a look at Twitify? You can use custom CSS to style your tweets. Also see discussions about Twitify here and here.
Twitter changed their display guidelines and policies on embedding of tweets on websites in June 2013. One of the themes I used for a client earlier in the year had custom styling of tweets, and they have now changed it to use the official Twitter widget to meet the new guidelines. In fact, the images on the Shopify theme store show how it used to look before Twitter changed things:
And after:
I think using an app like Twitify would be the easiest way to deal with these changes to embedding tweets.
Thanx for the suggestion. I did take a look at that before I posted this question. This is a project for a client and I dont think getting a plug in is a viable option. Anyways I found a work around.
Hosted the file on a server and then accessed it. So that resolved the problem. :)
I used node.js to write the script and get the posts as required.
Cheers.
you can use the app for that Twitify https://apps.shopify.com/twitify or you can Embed a Twitter feed in your online store
Go to your Twitter settings.
Click Widgets to open the widgets menu.
Create a new widget, following Twitter's instructions.
Copy the embed code.

When did someone follow - Twitter API

I've been attempting to go over the Twitter API, albeit it has taken me a while and I'm being thrown back and forth between the old and the new site - however I was wondering if there is a date at all for when a user has decided to follow or; or if your able to tell when a user stopped following you?
I've been looking through here https://apiwiki.twitter.com/Twitter-API-Documentation to no avail, but I wondered if anyone knew of a way of doing it (outside of a separate monitoring system of course!)
Cheers,
Dan
The Twitter API doesn't explicitly provide dates for when a user started following you or stopped following you. This is something that you would need to monitor in some fashion.

Inviting Users to Events via Facebook API

I'm able to create an event via the Facebook Graph API but I have yet to see a way in which to invite users to that event.
My fallback is to simply use the old REST API but sooner or later that will be phased out so I wanted to see if anyone had any suggestions.
--
Additional side question:
While using the REST API (or possibly even the Graph API) I have not found a way to invite guests who are not on Facebook. Is there a way to do this?
--
Thanks in advance for your help.
The bad news is that I think you're stuck with the REST API, at least I couldn't find another way (see http://bugs.developers.facebook.net/show_bug.cgi?id=10070 if you haven't already). The good news is that there's still so much functionality missing from the graph API that I'm pretty sure Facebook isn't going to be phasing it out any time soon. Very frustrating though...
can I use the JavaScript SDK to call the old REST API method ?
JS SDK

Resources