Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting an authed Facebook user's age without further permissions prompts

With the Facebook Graph API, is it possible to get a user's age (or age range) without first prompting for the user_birthday or friends_birthday permission?

like image 200
Kyle Wild Avatar asked Mar 24 '11 21:03

Kyle Wild


People also ask

How do I find Facebook user data?

You can get user data by using the Facebook Graph API if the user has given their permission to share their data and your app has the appropriate permissions to receive this data. This topic shows you how to make a single request for data and how to have a batch of requests in a single request.

How do I fix insufficient permissions on Facebook?

Step 1: In Facebook, click the small arrow near your name in the upper-right-hand corner and choose Privacy Settings. Step 2: Scroll down to Apps and Web sites and click on Edit Settings off to the right. Step 3: If the app you want to adjust is in the recently used list, click on it to edit settings.

How long does a Facebook access token last?

When your app uses Facebook Login to authenticate someone, it receives a User access token. If your app uses one of the Facebook SDKs, this token lasts for about 60 days. However, the SDKs automatically refresh the token whenever the person uses your app, so the tokens expire 60 days after last use.

How do I restrict permissions on Facebook?

Tap in the top right of Facebook. Scroll down and tap Settings. Scroll down to Audience and visibility section and tap the option you want to change the privacy for. For other things you share on Facebook, you can select the audience before you share.


2 Answers

You can't (-_-;)

Age requires user_birthday or friends_birthday permission.

Example http://graph.facebook.com/68310606562?fields=id,name,birthday

If not simply you can get the founder age.

like image 139
haha Avatar answered Oct 02 '22 12:10

haha


This depends; if you are building a canvas app you can parse the *signed_request* parameter, which will have an age range (max/min), which should give you something to go off of.

like image 29
Art Avatar answered Oct 02 '22 13:10

Art