Facebook Messenger Chatbot how do I collect the users geo location that they send?

后端 未结 3 2101
失恋的感觉
失恋的感觉 2020-12-13 14:40

In Facebook Messenger there is an icon allowing the user to send their geo coordinates.

Is this available on the Facebook Messenger platform yet i.e. if a

3条回答
  •  悲哀的现实
    2020-12-13 15:23

    There is a bug for now about getting some of users' location.

    When my users share their location in facebook-messenger-bot;

    While I can get the location of users like below response;

        { mid: 'mid.1463464074086:96b149e1a047e47842',
          seq: 2076,
          attachments: 
            [ { title: 'Fatih\'s Location',
           url: 'https://www.facebook.com/l.php?u=https%3A%2F%2Fwww.bing.com%2Fmaps%..',
           type: 'location',
           payload: [Object] 
        } ] }
    

    But can't get the location of some other users like below response;

       { 
        { mid: 'mid.$cAAD53Ka90kBmfY23q1gTEdy6rrmW', seq: 19104}
       }
    

    Facebook Team still working on this bug, this is the link if you want to browse: https://developers.facebook.com/bugs/160926314660178/

提交回复
热议问题