get gender and locale using Facebook app-scoped user id - facebook-graph-api

I am trying to get gender and locale using V2.0/V2.1 app-scoped user id, and I can't find it using https://graph.facebook.com/v2.1/[APP-SCOPED-ID]
Anyway, I can see it for /me.
Does this requires permissions in V2?
Thank you,
Dan

Related

get user photos by email address using Facebook-api

i am working on a new project, and i want to get all user photos in facebook by providing an email address using the facebook graph-api.
I tried to search for some information for how to do it, but with no luck.
Is it possible to implement this?
You can only get photos of a user by authorizing the user with the user_photos permission. After that, use the /me/photos endpoint. There is no way to get photos (or any data) by email.

Accessing user_ID via messenger bot

I'm using the Graph API, but I can't figure out how to get a logged-in users ID address.
The intro to Graph states "The Graph API can provide access to all of the basic account registration data you would typically request in a sign-up form for your site, including name, email address, profile picture, and birthday" but to access them i need user_ID so how could i get it ?
https://developers.facebook.com/tools/explorer/?method=GET&path=me%3Ffields%3Did%2Cname&version=v3.0
You need to have a token from the user, check out the given link. You can see what informations you can access if you give permission to your own profile.
This ID is unique to each app and cannot be used across different apps.

Facebook API Getting Spouse Name

Thank you all for your support around here.
Me again and with a simple question, does anyone know how to get the Spouse/Partner/Fiancée name of the logged in Facebook user?
I am using the user_relationships permission and I get if the user is married etc... but I can't figure it out with who? I need the name of the person...
Thanks
You can only get data of users who authorized your App too, so in order to get the name of your spouse, your spouse would need to authorize the App.
After that, you can use the family endpoint: https://developers.facebook.com/docs/graph-api/reference/user/family

Unable to register PostalCode, Tiltle, locality and DOB in User Profile of WSO2 IS

I am newbie to the WSO2 IS. I would like to configure PostalCode, Telephone and Date of birth in claim configuration which I can do it in SP (Service Provider) screen --> "Claim configuration" shown below.
Let's say I've user "John" configured in "User Profile" screen which give me option to enter FirstName, LastName, Organization, Email etc but it doesn't give me a option of PostalCode, DOB, Title, locality etc.
I wanted to populate all these values in UserStore (User Profile), so that all these values can go into the SAML Post. I am reading SAML Post assertions and I can get those values from Child Attributes or Attribute statements, so that I can check those value of User John against my local DB.
But I am not aware how we save values of "PostalCode", "DOB" or any custom Claim of my chioce in User Profile to make it available? Please help me. Please guide or Provide screen shots.
You need to configure new claim mapping and map your new claim uris in to a attribute of the user store. It seems to be that you have already created a claim mapping. If you need to show new claims in the user profile UI, you need to tick on the Supported by Default check box in claim mapping configuration.
More details about claim management of WSO2IS is available here

Facebook Profile Pictures for non-Friends

I am creating an iPhone email client that displays sender's profile pictures in in the UITableViewCells in the inbox, much like Sparrow does. I am using the following FQL query to grab these images:
SELECT
pic_big
FROM
user
WHERE
uid IN (SELECT uid2 FROM friend WHERE uid1 = me())
AND
strpos(lower(name),'INSERT_FIRST_THREE_LETTERS_OF_FIRST_NAME_HERE') >= 0
AND
strpos(lower(name),'INSERT_LAST_NAME_HERE') >= 0
ORDER BY name
I get the names of the senders from the email headers, and then search the user's Facebook friends using the full last name and the first three letters of the first name to account for nicknames. This works pretty well on the whole.
Sparrow, however, is able to grab profile pictures from Facebook for users I am not even friends with. How is this possible? I though queries were limited to specific groups, like your friends. And that searches for email addresses were not valid? Is this correct? How does Sparrow grab these profile pics?
Well as long as you know the users Facebook ID - it's a long number but treat it as a string. You can use this url to get their profile picture:
https://graph.facebook.com/[id]/picture
No need for anything more complex.
You can get the user_id of any known user from their email by making an API call to:
/search?type=user&q=USER#EMAIL.NET
If their email is registered with Facebook and public, you'll get back a JSON object with their name and user id. You'll need to make a separate call (or use a batch request) to get their picture from their ID.