Privacy setting to enable online_presence? - facebook

We're developing an application which need to get user's friends' online presence. I'm already getting everybody's presence but some of them returns null value. I googled it and some say that it's a privacy setting for each user.
I looked at my facebook test account's privacy settings and the only content is this:
Your status, photos, and posts
Bio and favorite quotations
Family and relationships
Photos and videos you're tagged in
Religious and political views
Birthday
Permission to comment on your posts
Places you check in to
Contact information
Everything is set to public for everybody but then I still its online_presence returns NULL value. Where can I find that setting to enable online_presence permission? Thanks!

If you are using FQL, then the required permissions are 'user_online_presence', 'friends_online_presence'. Alternatively, with XMPP, it is 'xmpp_login'.

Related

Check Photo privacy for a user

My project is a Facebook application developed in asp.net MVC3. I want to check the privacy of a Facebook photo for a particular user.
I have Facebook userid and Facebook photo path. How can I check whether this user had permission to view this photo?
I finally found a solution for this issue. By using fql we can query all the privacy details of an object from table "privacy":
SELECT value, description FROM privacy WHERE id = 10150146071791729.
From here we can get privacy details of an fb object; please see this documentation reference.
But the one issue still exist is that I am unable to check the privacy of a fb photo whose owner is not my friend. I am still searching for that.
Found Graph API solution for getting privacy settings, but it's providing privacy settings of albums not for particular photos.
https://graph.facebook.com/me?fields=id,name,albums.fields(privacy)&access_token=ACCESS_TOKEN

query privacy setting on profile interests

I'm writing an app to help users understand their Facebook privacy settings. I know how to access the privacy settings for a specific video, note, link, photo, or photo album. However, I want to determine the user's privacy settings for their extended profile information, such as favorite books, movies etc.
Is there a table to access this kind of privacy information?
Related:
Without the user_likes permission, I can only access favorite movies if their audience selector is set to public. With user_likes, I can access favorite movies no matter what the setting. However, I also want to determine the state of the audience selector for favorite moves, not just access their favorite movies.
Thanks!
No, Facebook does not expose user privacy settings via the public API. If your company simply cannot live without it, then you should have your business development team contact facebook to see if an agreement can be reached. It'll probably cost lots of time and money to pursue it with Facebook.

How to inspect about the privacy setting of a given user's birthday, friends on facebook

How can we inspect whether the facebook profile privacy setting for a given user's birthday, friends, family is public, friends or custom....
I am able to get the privacy setting for user's photos, videos and posts whether they are pubclic, friends or custom. But how can i do it for user's personal info like birthday, family etc.
Please guide me...
There is no API which will return this sort of information.
If your app can, from the perspective of a given user, see the information, that should be enough for your purposes, no? If you can't see a particular field, the user whose access token you're using can't see it or it's not present.

Fetching Friend contact details from the user's Facebook account?

I had used the 'friend.get' api method to get the friends id and from id i am trying to fetch the friends details can not get the friend contact detail in it. So please let me know if you have any solution for the same.
You cannot get a user's friends' contact info using the Facebook API (as of October 11, 2011).
The only contact info you can get is the user's email address, and you must explicitly request that permission in order to have access to it. You'll note in the page I just linked to that the "email" permission is only available for the user, not for the user's friends.
As far as other contact info, like phone numbers and home addresses, that is not currently available, even for an authenticated user. (See this SO question, where one answer references this Facebook blog post, which describes how Facebook added (on January 14, 2011) two new permissions, "user_address" and "user_mobile_phone", but the previous link to the Facebook permissions page makes it clear that those permissions are no longer available. And even if they were still available, they were only meant for an authenticated user, not for a user's friends.)
It's only possible to view public information of a user's friends and any other user for that matter. You must get each individual user to accept a permission request from your application - this will then give you permission to extra information.
You haven't specified which contact information you're wanting, but with any permissions granted you will be unable to request the phone number, you can however get the email address of the current user by requesting the 'email' permission documented here. You'll notice on on the documentation, that in the Friend's Permission column for email says 'N/A' (thus, you can't get a user's friends email addresses).
Another thing to notice is that it's not even possible to retrieve your own phone number using the Graph API.

facebook graph api friends_religion_politics permission problems

I'm working with facebook graph's api trying to get the users religion and political field. I have the friends_religion_politics permission set and signed in but when I test the application on my account I only get one of my friends religion and political fields.
The general inquiry I'm making is:
https://graph.facebook.com/me/friends?access_token=%3Ctoken%3E&fields=religion,political
Confusingly enough when I run just that I get 4 friends religion and political views but still far from all of theres.
Am I doing something wrong on the permissions or is it something like the default privacy settings doesn't give apps acess to those fields?
Facebook privacy settings allow users to keep their friends' apps from retrieving lots of information, including political and religious views. This is why sometimes they provide the information in their profiles and yet apps still do not fetch that data.
You can find this by going to your Facebook privacy settings (click the downward-pointing triangle in the upper right corner and then select "Privacy Settings.") Click "Edit Settings" next to "Ads, Apps, and Websites." One of the settings you can edit is titled "How people bring your info to apps they use." This setting allows people to check or uncheck lots of boxes depending on what information they are willing to share with apps their friends use.
It seems that a lot of people choose not to share their religious and political views with apps. But it seems your method of fetching what data is available is the correct method.
I checked with my friends and informations are coming correctly ...those who provided that particular information...
using graph api
If you are getting the values of your four friends then it means your code is correct working. Facebook fetches the information from its tables if the information exists. IF you are not getting the values from other friends, then it means they have not provided this information in their profiles. You just check their profiles.. Your code is wrong if they have information in their profiles but you are not getting.
I am not sure that the access token has necessary permission to get political views. The fact that you are getting 4 friends whose political views you can see, does not mean that the permission setting is working properly.
When I queried my friends political view from Facebook reference api site, I was able to get political views of two of my friends. May be those two friends have customized their privacy setting to allow everyone to see their political view. (By the way the political opition of both those friends were "political": "Not Interested In Politics (Nil)",
).
I will create a test case. In case, if you have a friend to help you with, you can ask him to open up his political view and then query again. And also ask one of your friend whose political view is already visible to your application, to see if he did customize his privacy setting.
Also I hope that you have an expiring access token. May be you have an offline_access permission and this creates an long living access token. You should try invalidating your token if you think this could be your problem.
I've tried to get at my friends religion, too, but never get a value for the field.
I am of course having the friends_religion_politics permission.
Tried both the Graph API and a FQL query.
https://graph.facebook.com/me/friends?access_token=xxx&fields=religion,political
-> just retunrs the ids of friends, nothing else.
Is there an issue with the API?