Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there alternatives to Facebook's Graph API deprecated User fields "locale" and "timezone"?

I am helping develop a chatbot for Facebook Messenger which uses Facebook's Graph API v2.6. But now Facebook is asking us to submit the app for review.

The problem is that our app asks the API for, among other things, the user's locale and timezone. I need the user's locale just to decide which language the bot uses to talk to the user. But now, since Graph API v2.7, both locale and timezone fields are deprecated and I don't know how to fetch the user's language and timezone, nor which permissions I need, so as to include them in the app review.

I searched the web for alternatives to those fields but I found nothing. What do I do? Please help me.

like image 715
Pedro Machado Avatar asked Aug 28 '18 16:08

Pedro Machado


People also ask

What 3 terms does Facebook use to describe what the graph API is composed of?

The Graph API is named after the idea of a "social graph" — a representation of the information on Facebook. It's composed of nodes, edges, and fields.

Is Facebook Graph API RESTful?

Is Facebook Graph API a REST API? The Legacy REST API is in the process of being deprecated, while the Graph API is the most current, so if you're unsure of which one to use, your best bet is to go with that one. As you suggested, the Graph API, just like the Legacy REST API, is in fact a RESTful API.

How do I upgrade Facebook Graph API?

In the App Dashboard Settings > Advanced, scroll to the Upgrade API Version section.

Is Facebook API a REST API?

Yes, it is a REST API as well.


1 Answers

https://developers.facebook.com/docs/messenger-platform/identity/user-profile#fields explains what fields you can get via the Messenger Profile API (different from Graph API).

locale should be available via the pages_user_locale permission, and timezone via pages_user_timezone.

You will need to get those reviewed before you can use them:

Beginning July 26, 2018, apps must request access to all other profile fields as part of the app review process. To submit for access to profile fields, add the permissions you would like to request when you submit your app in the Messenger Platform tab of the app console.

like image 147
misorude Avatar answered Oct 03 '22 20:10

misorude