how to fetch data from twitter api using flutter without using any plugin - flutter

Is it possible to fetch data from Twitter or Facebook...etc without using any plugins?
For example I want to:
Authenticating the user in order to take permission to fetch his own data from the API.
Getting user basic information (Username, number of followers and following, etc..).
I tried to search for a tutorial related to this issue but all I found using firebase_auth and flutter_twitter_login so, is it possible to do this without using the previous plugin?
I hope someone could let me know some docs for this issues :)..

Related

How to make a Graph API post (Facebook check-in) using Ionic or Angular

I have successfully added Facebook login functionality to my Ionic 3 application following the Ionic docs and I can receive needed user profile data from Graph API.
Now I can't figure out how to add the check-in option.
Facebook Graph API docs say check-in is now only possible by POSTING the data with the user that has 'publish_actions' rights.
So something like this should work:
this.facebook.api("me/feed?place=123123123123", ["publish_actions"])
(where place is the Place ID of the page I want to check-in)
But it does not work because the api method only creates GET requests and there is no way to set the request method to POST
Also the cordova's Facebook plugin also doesn't seem like it supports posting to Graph API.
I can't find any examples of Ionic check-in code examples or any way of doing this.
Anyone have any experience with this?
I have all the data needed to make this Graph API request - User Id, required permissions and place Id.
Please ask if additional info is required.

Facebook Marketing API - no app?

I want to pull ad data (campaigns, ad sets, & metrics like clicks/impressions/ctr) from Facebook using their API and put it into a database. Facebook's documentation says I need to create an app on their site in order to access the API, but that doesn't seem right. I'm not trying to create an app for my fb page, just want to extract data.
My first choice was to use an ODBC driver from
CData
, which does allowed me to successfully pull data from AdAccounts but threw an error when trying to get AdSets or AdStatistics:
OAuthException Code 10: You do not have sufficient permissions to perform this action.
I made sure to add in a target='act_{myAdAccountId}' parameter to the query, as per their documentation, but it didn't help. I figured this meant I didn't configure the driver properly, so maybe I'd have better luck just coding up a solution in python or php.
Next, I tried to run similar API calls using the Graph API Explorer and got the same error message. I created an access token that had all the extended permissions and then made a request to
GET /v2.4/act_{myAdAccountId}/adcampaigns.
This gave me the exact same OAuthException Code 10 error that I was getting through the ODBC Driver.
Can someone confirm whether it's possible to pull data from the API without building an app? If so, what permissions do I need to enable for my account? I'm already an Ad Account Admin in the "Ads Manager", and couldn't find anywhere else to set permissions.
Thanks!
Apps have no direct relation to Pages. You need to create an App for any API access. I did not use the Ads API yet, but i assume you need to use the ads_management permission with your App.
How to create Apps and authorize with the required permissions is explained in the docs: https://developers.facebook.com/docs
Since you asked about Login Review, all the information you need about that can be found in the docs too: https://developers.facebook.com/docs/facebook-login/review
I understand this is an old post, but in case if anyone was looking at a similar situation, I was able to call the Facebook Marketing API without building an app.
I posted a similar answer on another more recent question (Do I need a publicly accessible webserver in order to user Facebook's marketing API?), and was curious if this situation puzzled anyone else, which led me to here.
I wrote my API calls using Python 2.7 on Juypter notebook, and I just followed Facebook's Marketing API documentation and examples, modifying with my access tokens and account information.

Can google analytic API provide all info of all pages of a website?

I am new to Google Analytics. I would like to get all information (Unique and Total Visitors, Redirecting URL etc) of a Profile, which has url like www.someurl.com/profile/unique_profile_id
So I can easily have unique url for each profile, but as I am new to this. I don't know where to start.
API docs is good but confused where to start. If some can suggest small source of getting started with what i mentioned it will be very helpful.
Thanks in advance.
I come up with this query, but still I am not understanding ga:ids. This ga:id is for my home page www.mydomain.com
https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A90283827&start-date=30daysAgo&end-date=yesterday&metrics=ga%3Apageviews%2Cga%3AuniquePageviews
Let's suppose my site have 1000 user and their profile has url as I mentioned above. So what will be ids for that each profile to query.
I think you are miss understanding how the Google Analytics API works. The api returns raw data back from Google Analytics in the form of Json. It will be up to you to format that data.
What I want is that how can I access data of each page that is
currently available in my site.
I sugest you look at ga:pagepath by adding this dimension you will be able to request data by the page. for example pagepath, sessions will give you the number of sessions by the page path. You may want to try testing using the query explorer so that you can get back only the data you need.

Personalized facebook graph API

I am using the Facebook graph API with queries like:
https://graph.facebook.com/search?q=term&type=post&access_token=XXXXXXXXXX
but I am getting different results when I execute a query via graph API and via the Facebook web...
I am using the same user (I get a access_token from the same user that I uses to search via web).
I tested this text query with dif. browsers and with a java client and I have the same problem....
I was searching information about this topic, but It was impossible to find something.
Finally, I'd like to ask if someone know how this query customizes its results and if it is possible to parametize it.
Regards.
Update:
I am testing a query as:
https://graph.facebook.com/search?q=mark&type=user&access_token=XXXXXXX
but I don't receive results. I don't understand how it is possible which Facebook doesn't find users named Mark..... I suppose I have to use some parameter (fields, f.e)... But It is not explained in the documentation....

Use twitter API to aggregate multiple specific twitter feeds?

I am an intermediate level programmer with almost no web experience. I have an idea for an iPhone app and am trying to figure out if it is a feasible project to pursue.
I am thinking of building an application that groups certain specific twitter feeds together into an app. I am wondering if anyone has done this before, and if it is possible to use the twitter API to retrieve specific tweets without having a user have to log in.
The user will not be replying to or responding in any way to the links, rather just opening the links.
Thanks.
Jamie
Any public twitter feeds can be retrieved without a user authorizing their account. However you can usually only get a certain amount of tweets into the past. For instance this returns info about a user and their most recent tweets, just replace "screen_name=" with whatever name you are looking for
http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=jsh2134
More can be found at the Twitter API documentation.