I am trying to read invitable_friends using me/invitable_friends endpoint.
Here is what I am getting:
Here are the properties of my user token:
I suspect that something is wrong with my user token. May it be the case or are there are other problems possible?
I saw the question. The app is submitted and approved, so the answer does not help.
May it be that the problem is about Graph API version?
Will appreciate any help provided.
Here is a very interesting thing. It is said: This edge was deprecated on April 4th, 2018, and can no longer be accessed.. May it be the reason of me getting: No permission to access invitable friends facebook?
https://developers.facebook.com/docs/graph-api/changelog/breaking-changes#invitable-friends-4-4
Invitable Friends API
GET operations on the /user/invitable_friends
edge will now return an empty data set. The edge will be removed
entirely in the near future.
Related
I am trying to get the mutual likes using the facebook graph API. But I'm having difficulties, I'm testing using the Explorer Application (https://developers.facebook.com/tools/explorer)
Using the following request:
ID?fields=context{mutual_likes}
But if I use my application it returns only the count as
"total_count": 0
But I know there are mutual likes. In fact, if I use the Graph API Explorer Application, (changing the ID) it works and brings the mutual likes.
Both users I'm testing with are friends in facebook and have their likes public. My app has recently been approved to use the user_likes permission. And maybe I'm missing something, I was hoping you could help me achieve this.
I finally figured out why the request returned only the count as 0. It had nothing to do with making the request server-side.
I managed to get the mutual_likes by having the users also approve the user_friends permission. Even though I wasn't going to use it in the GET request.
Apparently you need both permissions (user_likes & user_friends) if you plan to extract anything from the context fields of a user.
Hope it helps someone else.
In the v2.3 Facebook Graph API, the [user]/posts endpoint returns all that friend's posts.
That endpoint was replaced with /feed from v2.4 onwards. However, it seems that the new endpoint provides significantly less access and that's not acknowledged anywhere in the documentation. Am I missing something important?
The documentation about the v2.5 /feed endpoints says,
Your app needs user_posts permission from the person who created the
post or the person tagged in the post.
This seems to mean that, under v2.5, it's only possibly to retrieve the feed of the authenticated user and not their friends. Is that correct?
Yes, that is correct. There´s not really anything else to add, you can´t get the whole feed anymore for privacy reasons.
See "user_posts" in v2.3: https://developers.facebook.com/docs/apps/changelog#v2_3
actually I need to know the procedure of getting all the check-ins or the location details that is issued by a particular user (who may be a non-friend to me) in his every post that contains location information though Graph API. Thanks in advance. I've gone through https://developers.facebook.com/docs/graph-api/reference/v2.2/user/feed https://developers.facebook.com/docs/graph-api/reference/v2.2/post references upto now.
For obvious reasons (privacy and stuff) you can´t get the location details (=checkins) of any user. You can ONLY get it by authorizing a User with the correct permission and ONLY for that authorized User.
Although, i am not sure if it´s even possible anymore to get the checkins even for the authorized User - because the checkin endpoint is deprecated.
First off, I am new to using Facebook's Graph interface but I've read the documentation and am still unable to retrieve the desired result. First I was able to set up an app account and retrieved my App ID and App Secret, I then set up and advance OAuth Dialog that will ask the user for read_stream permissions (accessing the news feed). I have successfully had three users go throught the authenticator and it allows me to see more of their data but still no wall post (which I assume is the news feed). Below are the steps I followed if someone can help. Thanks. (Sidenote - All urls below came straight from the facebook documentation.)
https://www.facebook.com/dialog/oauth?client_id=XXXXXXX&redirect_uri=http://myurl.com/wheredataisdisplayed&scope=read_stream&state=SomethingIndentifiable
returned: state and code=1XXXXXXXX, I then used that to get the OAuth Token
https://graph.facebook.com/oauth/access_token?client_id=XXXXXXX&redirect_uri=http://myurl.com/wheredataisdisplayed&client_secret=XXXXXXXXXXXXXXXXXXXX&code=1XXXXXXXX
returned access_token = XXXXXXXXXXXXXXXXX and expires = 9875067805, I then tried to query the data for that user
https://graph.facebook.com/me?access_token=XXXXXXXXXXXXXXXXX
The end result is more data than what is publicly available but I still don't have access to the users wall data. Another thing I want to do with this is to use it with an infinite session key so that once the user does this once they will have continued access to their data but that I can work out later, Thanks for any help in advance.
Are you accessing /me/feed correctly, and if so are you receiving an error message when you do so, or just nothing back?
/me/feed should work for this.
You can also request /me/permissions to check if the correct permissions were granted which may help you solve the issue
Howdy- I have been tooling around with the Facebook Graph API and successfully retrieved back a list of my likes, and a list of my friends (once I authenticated using OAuth). But what I really want to achieve is pulling back my friend's likes. When I try and do that, obviously using the same URL that I use to pull back my own likes but subbing the friend's user id for "me", I don't get anything back, unless they have installed the app as well. Then I get them no problem. To be clear, I can only see the likes of friends who have installed my application. So clearly I am running into a security/rights issue of some sort.
I could see where this would be the case; you simply aren't allowed to see your friend's likes unless they have installed the same app. Fair enough, but then how is blekko.com doing it? I even tried using FQL without much luck. I suspect I am missing something totally obvious. Anyone had any luck with this? Maybe with the Javascript API or one of the other access methods? Thanks in advance for any guidance.
Your application needs the permission "friends_likes".
Check http://developers.facebook.com/docs/authentication/permissions for more info on the different permissions.
This SO answer might help if you're having trouble with the authentication / permission request process.