facebook graph api to get follower count of different account - facebook

I need to get different user follower counts through facebook graph api. I get the user id through user name but how i get the follower count of that user.
thanks in advance

You're facing at least two problems here:
1) The username field has been deprecated with Graph API v2.0
2) The /{user_id}/subscribers edge has been deprecated with Graph API v2.0
I guess you'll not be able to do what you want to achieve unfortunately.
See https://developers.facebook.com/docs/apps/changelog#v2_0_graph_api

Related

How to get my own Facebook user timeline using Graph API?

I would like to get all the posts and updates that are normally displayed in FB official application for MY account (this includes updates from my friends and liked pages).
I wasn't able to find any details how to get that, the only thing I've managed to get is my own posts.
Anyone got any experience with that using current Graph API verion (3.3)?
All the alternate FB clients (ex. Friendly) must be doing this somehow.
There is no way to get ANY data of users who did not authorized your App. Which means, there is no way to get posts of friends. You can only get your own friends, with the user_posts permission and the /me/posts endpoint. If some Apps access friend data without their authorization, they are most likely doing something that is not allowed.
Here is what I found in their API docs:
There are two scopes:
The user feed requires the user's permission
The public feed has fewer capabilities but doesn't require perms

Get Facebook Following and Follower list using Facebook Graph api

I am trying to get all Facebook following users list (which I am following) and follower users list from Facebook using Graph API, I am Googling little bit but did not get anything.
Can any one help me to find the solutions.
This isn't possible with any application v2.0+ and higher. The user_subscriptions permission has been removed.

How to get the Facebook followers or subscribers count for Graph API version 2.0?

I am using Facebook Graph API version 2.0. I want to get the Facebook followers or subscribers count for some users. The complete Facebook page URL like: https://www.facebook.com/XXXUsernamexxx is with me.
I got a solution from how to get followers list from facebook account by graph api? that we can get the followers/subscribers count by using the following URL.
https://graph.facebook.com/v2.0/{user-id}/subscribers
But I don't have user id with me. I can get the user id by sending first a request to Facebook API like: https://graph.facebook.com/v2.0/?ids={complete-facebook-page-url}
From the response I will get the user id. Then there will be another request to Graph API to get the subscribers count. Hence there will be two requests to get the followers or subscribers count. But I want to limit it to one request.
It is possible to get the followers or subscribers count by sending complete Facebook page URL or by username?
Any help is highly appreciated.
This isn't possible as user_subscriptions is no longer available in v2.0.
Also currently for some 2.0 applications, the global ID seems to be still possible to use.
We have to make some trade-offs while v1.0 and v2.0 are both in play but from April 30, 2015 we'll have a stricter separation between global and app-scoped IDs. - David Doyle

Facebook Graph API - /{user-id}/feed limits

I would like to use the facebook /{user-id}/feed to read facebook posts for a specific user. Before I go down the long road of setting up the Graph API, just wanted to get some quick questions answered.
How far back in time does the /{user-id}/feed go to return data?
Can I filter for specific words?
The Graph API returns all posts for a user since they joined. https://developers.facebook.com/docs/graph-api/reference/v2.1/user/feed/
Keyword filtering was available using FQL, which is now depreciated. There's no way to do this using the Graph API.

Find locations of checkins from foursquare friends using v2 API?

How is it possible to get the locations of a user's friends nearby(within X km) with v2 or real-time user push of FourSquare API please?
And can those friends be the same friends as the ones from facebook account automatically added (for those fb friends of the user that also login with their fb account to 4sqr too), or, when a user joins 4sqr via fb can they register to an app using 4sqr API and then have that app specify somehow what his friends could be and make them all part of the same group whose last checkins could be searched?
In other words, I would like to list all nearby 4sqr friends that are in the same group (list?) along with a last time stamp of their checkins. Can this be done and how please? Which APIs should I use along with OAuth or something?
Based on the API docs (https://developer.foursquare.com/docs/), it doesn't seem that you'll be able to get the information you are looking for.
It looks like you'll be able to get real time pings when a user that is using your app checks in somewhere. But you can't get just any foursquare user's real time checkin events.
Unfortunately
I guess this is possible, at least until the Graph API v1.0 is still working (until April 30th, 2015), because then all the friends_* permissions will be removed. Have a look at the answer at
Facebook Open Graph API - action-type & object-type of another application (foursquare)
You need to request the user_actions:playfoursquare and friends_actions:playfoursquare permissions first (Reference).
Then, you should be able to request the checkins via
/me/playfoursquare:checkin_to
or
/me/friends/playfoursquare:checkin_to