How to retrieve any user's data from twitter - twitter

Is it possible to fetch (through twitter's API) specific user's data (like follower's id, or following user's id) without involve the user itself? I look forward to build twitter data miner but every tutorial i read involves end-users and pin authentication.

Yes. Try Application-only authentication.
Get your keys and store it in a separate file. Then use a streaming api & write a code to fetch what are all the data's you want (like follower's id, name etc..) & make that file to run as a background service that runs all the time.
Hope it helps!

Related

Using Instagram Basic Display API to get user's metadata

I am currently working on an iOS-App where Instagram users can fetch their data, such as profile information and images and will be able to post. There are similar apps like Flume (https://flumeapp.com/) which are capable of accessing those features. I already managed to get the access token and fetch the basic user information.
As the Instagram Legacy API will be shut down soon, I am wondering how to fetch detailed user information, as the Basic Display API only lists fields for account type, id, username and media count (https://developers.facebook.com/docs/instagram-basic-display-api/reference/user#fields).
In both the Basic Display API as well as the Graph API it says that creating media is not supported.
Can anyone tell me how other apps (like Flume) are able to perform those actions? Are they perhaps still using the Instagram Legacy API?
Thanks!

IOS Offline Login

Stange question, I'm looking to create an app for the company I currently work for which will hold all passwords for the software and platforms we use. I would like to be able to create some kind of login or authentication without connecting to the internet or using a post to HTTP.
Is this kind of thing possible? Even if I was to keep it to one username and password across the board. Or is it going to be better to only distribute to people that I know?
The only reason I want to do this is so that when downloaded from the App Store it would be only engineers that could login.
Thanks in advance!
For this you can add json file that contain all the data of the users for initial state and for user registration you can use core data. But you want to syncing with registered data and json file you need to fire silent api call to server.

What Twitter access token should I use to automate tweets?

I would like to know what access token I require to achieve the following.
My Meteor app crawls various RSS feeds and makes a daily digest. I would like to automatically tweet about the daily digest when it is created, using the app's Twitter account.
As I see, in the doc, it seems that I need to use application owner access token and create my app using the app's Twitter account. Is this a correct approach?
Yes, that's correct. It's quite simple too.
Go to Twitter Apps and login with your regular twitter account
assuming you have one, if not you need to create one.
Once signed in click on Create New App button.
Fill out the application (Name, description, and whatever else it requires).
Create your key and access tokens. Share those with users that you trust as they'll be used to access the twitter API to read/write information.
Give the application you created a "Read and Write" permission based on what you asked in the question.
Then depending on the software/language you use there's a plenty of existing packages that can help you access and obtain the information from the API.

Using fusion tables with app inventor as a database

Easy to answer question ( I hope)
Need to use fusion tables with app inventor as a database but need to have every app access it without having to log in with user id.
Does app inventor have that functionality? Believe I need to set up API for 'installed applications' but do not know where in app inventor I need to enter the SHA1 code.
App is to 'anonymously' update database without needing to log in.
Thanks in advance
I don't think that this is possible with the built-in Fusiontables Controls, see also the notes in the Pizza Party tutorial:
NOTE about Sharing Fusion Tables: To share a FusionTable with others,
you have to invite each person individually, the same way you would
share a private google doc. There is no way to share write privileges
to a FusionTable with the public. Public access is restricted to
read-only.
However this is possible with the App Inventor - Fusiontable interface using the web component. To prepare the login free access, do a run with the interface with your login and store the received refresh token as variable in your app. Then you can build your app, publish it and run the interface with the stored authorization without need to login anymore. The user will then access your fusion table with owner permissions.
See also this similar question and here
Application 1 - Using Fusion Tables like a Database*
...
In other words, if you own a Fusion Table in your own account that you
want to serve as a database in your application, you simply need to
get the access and refresh tokens for that account, and use the access
token for all requests to Fusion Tables. When the access token
expires, a 401: Unauthorized message is returned, and the refresh
token can be used to request a new access token.
...
You can then securely save the access and refresh tokens somewhere
accessible by your application, and use them in your code to make the
requests to Fusion Tables.
EDIT: You now can find a running example here.
If you just need a database for your app, also consider using Google Cloud SQL which offers familiar MySQL functionality on the cloud. https://developers.google.com/cloud-sql/

Twitter API: Separate read and read/write tokens

On my site users should be able to authenticate using their twitter account. Another optional feature is, that users should be able to have tweets sent in their name on certain events.
For this I've setup the twitter application to be read & write.
My problem now is, when a user is using twitter to authenticate, then he is automatically also granting read/write permissions. But I'd like to leave it up to the user to decide at a later stage if he trusts me enough, to grant me this permission..
I can't find any setting/parameter in the api which would allow this split. The only solution I can currently see, is splitting the twitter app into two: One read-only app for authentication and one read-write app for tweeting etc.
Send users to https://api.twitter.com/oauth/authorize?oauth_token=xyz and add a parameter of oauth_access_type with a value of read. That should restrict that particular user to read only permissions.
https://groups.google.com/forum/#!topic/twitter-development-talk/1P765h9ecBk

Resources