From my understanding Facebook has made changes to their API such that third-party services can no longer have access to the friend list (at least names) of someone using your app (while being logged in facebook, of course).
Does anyone know if I maybe just missed one API endpoint, and it is still somehow possible? I just know that the original one is deprecated/has been removed. Thank you.
(Wasn't sure where to ask this, so I turned to stackoverflow. I know it's not the best use of the site, I apologize for that.)
No, you did not miss anything, accessing the friend list is no longer possible. You can only get data of users who authorized your App too, every other user is not available at all - for privacy reasons.
Related
Below url gaves the user's facebook page till yesterday. But it's not working anymore.
https://www.facebook.com/app_scoped_user_id/xxxxxxxxxxxxx/
Is there any way to get user's facebook page or it's disabled for a security reason?
Unfortunately, Facebook have chosen to disable the ability to resolve app scoped user IDs, so this feature is now gone. Seems they havent yet responded to people registrered to the bug to let them know.
https://developers.facebook.com/blog/post/2018/04/19/facebook-login-changes-address-abuse/
There's a new permission in Graph API 3.0 that provides a URL link for a facebook profile:
user_link
In order to use that, you have to submit your facebook app for review (and likely have a legitimate reason you need this information.
Update: I went through this process, our app got approved for user_link permission, and it works as advertised.
The user_link variable is an app scoped link that will work as long as the app remains approved, and will stop working if the app should get removed or they revoke the approval. So it's a special URL that really only works as long as the FB app is around.
https://developers.facebook.com/bugs/2054375031451090/
Subscribe to that bug to get updated on the status.
There is also a blog entry about this: https://developers.facebook.com/blog/post/2018/04/19/facebook-login-changes-address-abuse/ - so this is actually not even a bug.
This is no longer possible and will not be, according to https://developers.facebook.com/blog/post/2018/05/01/facebook-login-updates-further-protect-privacy/
Your best bet going forward is to open the Facebook site and search for the user name like so:
JavaScript:
Assume user is an object with a property called name that contains the user's name.
window.open("https://www.facebook.com/search/str/".concat(encodeURIComponent(user.name)).concat("/keywords_users"));
In most cases this will allow you to quickly find the person in question, given that you can still display their profile picture using the app-scoped ID on whichever site lists users. It's not great, but it may be of help to someone. We've resorted to this solution in our CRM.
Facebook removed the /{user}/home api on October 6, 2015.
I'm wondering if anyone knows if there are any alternative methods to access news feed data.
I've worked with /{user}/feed but of course that only shows data for the currently logged in user.
I've tested with my wife to be sure and she can only she posts on her wall and I can only see posts on my wall and neither of us can see each others posts no matter what permissions are set on them.
I'd like to think that currently logged in user could access any data via the api that they could via the site (assuming they've granted the proper permissions of course.), but this doesn't appear to be the case.
Of course I am particularly interested in the news feed and I suspect that the there is no alternative but I don't want to give up yet.
I'd like to think that currently logged in user could access any data
via the api that they could via the site
No, that would be a privacy issue, because your app could access data/posts of users who did not even authorize your app and no one knows what you do with the data. So the answer is no, there is no alternative.
I have a question about weather something is or is not possible with Facebook's API.
Can a server side script have access to a users account and remove a tag associated with another person? Or remove photos that has a particular friend in it (obviously only if the person has been tagged)?
For instance maybe I want to remove all connections I have with another person, can the Facebook API graph allow me to do so if I specify the individual?
I am not looking for how to do so, I am first trying to find out if this is even possible. I have been pouring over documentation but it is something that I do not completely understand and I will not be the one writing code.
Any help or direction will be great, thanks!
No you can't unfriend a person through the API. Even deleting photos is impossible, unless the app created the photos in the first place. There are numerous other threads on SO about this, as well as forums posts about people that have struggled with problems in the recent past. You can't even delete a tag of a photo through the API even though DELETE methods exist in the documentation and indicate that it should work. When making the calls people receive oauth error results, and there is probably still a pending bug report about this behavior, but no expectation that FB plans to fix it anytime soon.
In general they are happy to let you add a lot of content, but they don't want to let you remove it -- and that goes double for the API.
I am working on some project that needs that when ever a friend of mine unfriends me from his list I gets notified so that I update the list of my friend list, one way of doing it is I can schedule a cron job and that will update my friend list once or twice in a day in my project, but that is not going to be real time, I searched the internet but did not finds any thing in fact may be I am struggling with some different keywords and may be that particular thing is termed differently, please shed some light since I am new in facebook api thing I am struggling with the internet false posts as well.
Thanks in advance
Ankur
As in #Igy's comment, what you are asking for is exactly what Facebook is highlighting as a "Prohibited Functionality":
Revealing Friend Removals
You must not include features or functionality that disregards or circumvents Facebook product
limitations. For example, you must not notify a user if someone
removes the user as a friend because Facebook does not publish this
information to users
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.