Baxter
Baxter

Reputation: 169

Get locale using graph api NOT getSignedRequest

I know it is possible to get the locale of the user with getSignedRequest, and it is possible to get the locale of the user with https://graph.facebook.com/me?fields=locale once they have authorised the app. But what is the equivalent graph api url that I can use before they have authorised the app? All my code is with the graph api so I really dont want to have to switch now to using the whole facebook->getSignedRequest() stuff. I can't find it anywhere but seems silly this functionality has not been provided in graph api?

Upvotes: 2

Views: 659

Answers (1)

Matthew Johnston
Matthew Johnston

Reputation: 4439

You have to pick between using the signed_request (which is sent in a POST request to all apps on Facebook) or authorizing the user.

If you don't do one of these, then you won't know what the Users ID is, so you will never be able to identify their locale.

The signed_request just requires you to be able to capture request data and then perform the parsing logic outlined in the doc linked to above - it doesn't require the use of any SDK or API, just the ability to read requests (most languages will be able to do this).

Upvotes: 1

Related Questions