Is it possible to make a custom, realtime twitter widget? - twitter

I'm having a bit of trouble finding any resources about making a custom Twitter widget for a site.
Basically, I want to create a realtime twitter feed to implement within a site, that automatically updates every few seconds to show new tweets.
I know this used to be possible, but it seems like Twitter just wants me to use their default widget these days instead of my own solution.
Does anyone have any tips / links to good resources?
Thanks in advance!

A possible solution is available which can be implemented in our website. You can try twitters streaming API. Its a technique of keeping a permanent connection between two endpoints; one at twitter side and other at our website. The technique is similar to a chat application where connected ports listen for any changes and update the changes in our side.
Please refer twitters streaming API

Related

How to extract a live youtube chat information?

I'm aware that google has an api for youtube live chat and statistics, but to avoid all the auth and tokens, I'm looking for a much simpler solution to read and process the live chat messages, without the need to auth. This website is able to show the live like counter and views without the need to authenticate (https://youtubelikecounter.com)
Youtube has the option to open in a new window the live chat, and I think, by expecting the elements of that window, that there must be a simpler solution for that, I just can't find out how. Any suggestions?
I've been trying to get google auth to work, but it seems to be much more complicated than just reading the website information.
Without any kind of authentification you can get the number of viewers of a live thanks to item["liveStreamingDetails"]["concurrentViewers"] https://yt.lemnoslife.com/noKey/videos?part=snippet,liveStreamingDetails&id=VIDEO_ID you can also access to the number of views and likes respectively in item["snippet"]["viewCount"] and item["snippet"]["likeCount"]
Then thanks to item["liveStreamingDetails"]["activeLiveChatId"] you can access in the same way the livestream chat: https://yt.lemnoslife.com/noKey/liveChat/messages?part=snippet,authorDetails&liveChatId=LIVE_CHAT_ID

Apache Spark Twitter streaming

I have an application that makes it possible for users to add hashtags that will be followed on Twitter and also to follow other users if they have Twitter accounts registered on the application. These functionalities are implemented using twitter4j. However, since I'm redesigning application at the moment I wanted to improve it and implement using Apache Spark Twitter streaming, so I have two questions about it:
1) Is it possible to create filter with users twitter ids that I want to follow?
2) Since application makes it possible for end users to add new hashtags often, my current implementation has been implemented in such a way that each time new hashtag has been added, twitter stream has to be stopped and initialized again. Is there any more efficient way to add new hashtags without interrupting stream, or that is the only way to add new hashtag?
Thanks,
Zoran

Big Picture — What sort of feed for an iOS news app?

Alright — this sort of question shows my naïveté but I am asking it nonetheless so I don't venture down the wrong rabbit hole while trying out this app.
I'm making what amounts to a news app. Imagine taking a Wordpress blog and fitting it to iOS. Now, here's my question — what sort of feed / architecture should I be using to push information from my Wordpress server to my app? I would assume RSS using AFNetworking, but that seems to cause some rough edges, and all tutorials that I see end up pushing to a web view instead of a scrollview with nice, rendered text. Plus, none of the same tutorials seem to have anything further than the initial feed (loading more than the initial 10 stories given, for example).
I've already committed a few hours to trying the RSS / AFNetworking approach, but is there a significantly better alternative that I just haven't come across. (Note that I do have access to the back-end of my Wordpress site, i.e. it isn't somebody else's)
If you are building an iOS app that connects to WordPress, I suggest you to access the website data by an API instead of feed, then you can hit the API from your app and manipulate the data as you want.
If you have access to the WordPress backend, check the Thermal API which is a plugin that will probably solve your problem.
Cheers,
I would suggest that you look at https://wordpress.org/plugins/json-rest-api/ this is to be added to the core of wordpress so it would seem that is the way to go I think.
By the way I am working on the same type of thing as you.
I think the most popular Wordpress API is the one that comes with Jetpack. You can find its documentation here: https://developer.wordpress.com/docs/api/
If you just want read access, then i think the easiest way to do so is by using: https://github.com/evermeer/AlamofireJsonToObjects/blob/master/AlamofireJsonToObjectsTests/WordpressTest.swift
If you also want write access, then you have to implement Oauth2. For that you can select a library from: https://cocoapods.org/?q=oauth

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.

Integrating Facebook,twitter,google plus into another app

Integrating facebook,twitter and google plus into another web app, so that the posts in that app are posted write away as status in facebook,tweets in twitter and status in google plus.I am developing this using ruby on rails.I searched a lot about this but didn't find anything which would work for me.Can post some links or ideas which would be helpful for this.
For Facebook I must suggest you to use Koala Gem...
For Twitter
Twitter
https://twitter.com/about/resources/buttons
A twitter button can be easily generated here and placed on your web site..Its working great. You can even customize everything in twitter.. Its so user friendly.
For Google plus
Google Plus
I am just working on Google plus..Facing some difficulties as its having so many restrictions.
Still I would Like to Share a link you can follow that..
How to share content from our site to google plus
I hope it will work fine...
I'd suggest to use Koala ( https://github.com/arsduo/koala/wiki ) to interface with Facebook. It's by far the best maintained fb library out there.
Otherwise, you should learn one thing or two about OAuth2:
https://github.com/intridea/oauth2
https://developers.facebook.com/docs/authentication/
https://developers.google.com/accounts/docs/OAuth2
Use https://github.com/sferik/twitter to interact with twitter.
For google, I've found that implementing the XML chat manually is easier than using any existing API wrapper. To convert XML responses into data, you an use a combination of the Response#parsed method of oauth2 gem and Array.wrap of ActiveSupport (there is no way for an XML parser to tell a single node to a possibly repeated node (so an array) that appears just once, avery big drawback of XML in my point of view)
Or you can directly ask google for JSON, so you already have the data correctly structured.
And, as #brendan-benson very correctly says, do only API calls in background workers, never in your normal request/responses cycle.
There are plenty of gems available to access these APIs:
Twitter API Wrapper
Facebook API Wrapper
Google Plus API Wrapper
Since APIs are flaky, it's best to use a queueing system like resque to queue the calls in Post#after_create, and then have a resque worker execute the call asynchronously.

Resources