Daniel J
Daniel J

Reputation: 418

Fetch senders locale - Graph API

enter image description hereI have app that replies to new messages to Facebook page. The app has all permissions required for messaging.

I need it to be able to communicate in users preferred language.

Is there any way or permission to get senders locale?

Upvotes: 1

Views: 232

Answers (1)

Hui-Yu Lee
Hui-Yu Lee

Reputation: 989

Check the Message Platform - User Profile API. https://developers.facebook.com/docs/messenger-platform/user-profile

curl -X GET "https://graph.facebook.com/v2.6/<USER_ID>?fields=first_name,last_name,profile_pic,locale,timezone,gender&access_token=PAGE_ACCESS_TOKEN"

This call can only be made with valid user id received through Send API. Standard Facebook user id does not work.

Upvotes: 2

Related Questions