This question already has an answer here:
Degree of separation
(1 answer)
Closed 8 years ago.
I am trying to fetch degree of separation between users in Facebook API. Similar to the one in LinkedIn. I tried to fetch friends of friends through the Facebook API v2.2, but it didn't work out.
How can I achieve this?
"it did not work out" is not a good description. But anyway, what you are trying to achieve is not possible at all. You can´t get access to "friends of friends", you can´t even get access to "all friends" (first level) anymore. With /me/friends, you only get friends who authorized your App too, for privacy reasons.
See the changelog for more information: https://developers.facebook.com/docs/apps/changelog
Related
This question already has an answer here:
Facebook - "Cannot query users by their username" solution
(1 answer)
Closed 7 years ago.
Facebook API endpoint
https://graph.facebok.com/{username}
stopped work in recent two weeks. Temporarily pages like www.findmyfacebookid.com didn't return proper results, but now they works fine.
How can I grab userId from Graph API now?
I know about stragne workaround with data-hovercard parameter. Manner described here. However, I find it hard to believe that they use such a odd solution especially I know tools which probably use another way and have not outages. Does anybody know more efficient way to get that data? Your help appreciated.
You are not supposed to use the username anymore, only the App Scoped User ID you get after authorizing a User. I assume those tools switched to parsing the Facebook User profile, which is not allowed according to the scraping terms.
This question already has an answer here:
Get Facebook User Id of my website visitors w/o auth
(1 answer)
Closed 4 years ago.
Is there any way to take the facebook user-id of a website visitor and save the user-id to a text file to keep track of visitors. I know there is some ways using Facebooks API, but it seems like the user have to give permission, and that is not what we want. So any way to save the facebook user-id of a website visitor without any user interaction?
Simply put: you can't. This would be a huge privacy/security issue IMO. You need explicit permission from the user to get his ID on your own website.
This question already has answers here:
Querying Users who 'like' my Facebook Page
(8 answers)
Closed 9 years ago.
I am admin of a page which has over 1000 likes. I want a list of all my fans. Is it possible to do this ? If yes how ?
I have been checking the facebook documentation and FQL but am not able to figure out anything. Please help.
What I want is a query like "select uid from page where page_id=xyz"+ access_token of the page
I have tried firing a query on the connection table, page table and page_fan table. But am not able to make any progress.
I highly doubt that is possible, and if so it shouldn't.
This is a privacy issue. A facebook page is meant to give you the ability to either connect to people with a common interest or to promote your cause/product/company.
You are able to get insights on your fans via: "https://www.facebook.com/{yourpagename}?sk=insights" which is fine to get some demographic data of your audience.
If you would get a list of your fans, you would basically have a template to send spam mails.
I don't say this is what you are trying to do, but if you could - everybody could.
This answer isn't very good, I know. But as far as I could research it there is no way to do that.
This question already has answers here:
Querying Users who 'like' my Facebook Page
(8 answers)
Closed 8 years ago.
Is it possible to get users who liked my page through Facebook Graph Api? Basically, I want to get last 5 users who liked my page.
I can't find it anywhere in the docs and endpoint /page/likes return likes which page made, not who likes page.
No, I don't think it's possible. Have a look at this bug.
You can also follow this discussion and can try to find a workaround to this problem. This bug is around 1 year old, so I think you might find a way achieve this. There have been a lot of discussion on this on StackOverflow.
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Library to Integrate Facebook login with Play Framework?
I use playframework to make Json/Rest services - no webinterface.
I want to make a service, which posts a message on a Facebook wall.
I had a look at fbconnect and fbgraph, but they seem to only support webinterface.
Am I right ?
Of course, I can just access the Facebook graph API directly, but I would like to know if there are better ways. Later I want to do a lot more with the graph api.
If you want to post to any user's wall you will need the OAuth dialog in order to FB grant access to your app on the user's wall, at least for the first time.
If you are posting to your system's wall then you can get the access token's for your application and store it somewhere.