Identifying Facebook Messenger user with UserID from a Facebook Login

前端 未结 5 1900
逝去的感伤
逝去的感伤 2021-01-30 09:27

I am trying out the new Facebook Messenger Platform and have hit a bit of a problem.

When a user first chats with my Bot, I want to use the sender.id to loo

5条回答
  •  梦毁少年i
    2021-01-30 09:56

    Yes. You can get details like first name, last name, profile pic url, locale, timezone, gender from an api. Only you have to pass is their recipient id/sender id and acccess_token of your messenger bot.

    https://graph.facebook.com/v2.6/USER_ID?fields=first_name,last_name,profile_pic,locale,timezone,gender&access_token=TOKEN
    

提交回复
热议问题