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.
Related
I am trying to use the Facebook Graph API to GET Instagram metrics such as post impressions. I was able to successfully pull my Instagram Follow Count by using this query
{instagram_user_id}?fields=follow_count
When I try to query my post impressions with
{instagram-media-id}/insights?fields=post_impressions
nothing shows up. Am I missing something or have I possibly not requested the correct permissions?
I am trying to follow the documentation at the below link. Is it even possible to pull the impressions through the Facebook Graph API?
https://developers.facebook.com/docs/graph-api/reference/instagram-media/insights/
Thanks!
I believe that it wasn't possible to pull insights using the older version of the API.
However now it is possible as instagram / facebook just released a new version of their Graph API that includes insights. The request would be:
v2.10/{instagram_media_id}/insights?metric=impressions
The new documentation can be found here
Have you tried to specify "period" parameter? By default it might not be a "lifetime" and if you did not generate any impression recently you will see nothing (empty array i assume). In case you missing some permissions, Facebook will make you aware in response.
After reading Graph API documentation, stackoverflow questions, etc, i'm still confused on the task i have.
In short what i want:
-i have a classified ads website and i want to publish the ad from it to a facebook group where i'm not an administrator.
I have a facebook page (which is represent my website) from the name of which i want to publish an ad in the group. The ad in the group must be published as the "sale" post.
I'm using Facebook javascript SDK for this.
So, i'm really stuck in how do i do it.
what i tried is publishing using my app, using user/page access_token, but always getting different problems.
Can someone tell me, if it is possible to make what i want? and if possible - the algorhytm, what should i do for that?
I am migrating the Facebook API that I use, from FQL v.1.0 to Graph API. I discovered that some things have deprecated. My problem is related to getting all the users that are using my application.
In FQL I can do this with:
/fql?q=select+uid+FROM+user+WHERE+is_app_user+AND+udi=
Question 1 : Table user contains all the users friends and non-friends? Or just the friends?
In Graph Api, I have understood that is_app_user is not used anymore, instead there is fields=installed that does the same thing.
I have found two ways of using fields=installed :
me/friends?fields=installed
OR
me/fields=installed
Question 2 : There is a difference between these two syntaxes?
Many thanks for your help.
Passing installed as parameter with /me/friends makes no sense because
/me/friends
returns only friends who are already using the app.
With v2.0, Facebook has made it impossible to fetch users who are not my friends but are using the app. If you still need such users,the best solution would be to store the user-ids of all your app users in a persistent storage. A workaround using FQL should be avoided as its getting deprecated too with v2.1.
I am scratching my head from a few days to get this thing done but i am not able to do it. developer.facebook says FQL is not available anymore and graph API do not provide any such thing.
https://developers.facebook.com/docs/graph-api/reference/v2.2/user/likes
You need the "user_likes" permission, check out the docs for example code.
This will only return the Facebook Pages you like, it is NOT possible to get a list of all external links you like afaik.
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