skip to Main Content

I am working on fb messenger bot and I want to access user’s current location without them sending it as an attachment.I tried to get user’s current location from fb graph API but it seems like to return the user’s location from their profile. I need something like real time geo coordinates.

Thanks in Advance!

2

Answers


  1. Pretty sure there is no automatic geo-location support in the FB messenger API but:

    1. On mobile you can have them submit their location using the location icon, this works pretty well (gives you their lat and long)
    2. On both desktop and mobile you can ask them to input their location, then use that information to get their coordinates
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search