Upload a photo with a GPS location

Is there a way to pass the GPS coordinates where the photo was taken as a location parameter for uploading photos to the FB Graph API ( https://graph.facebook.com/me/photos )?

FB announced some time ago that it would add this feature to photo objects. In fact, they said that a location could be added to each update, and if I upload a photo via the FB web interface, I really can determine the place where the photo was taken. Now I want to pass this as an option to download photos from my mobile application.

Thanks.

+6
source share
2 answers

Currently, the photo endpoint only supports adding a Facebook page as the location for the photo. The place field is just the identifier of the Facebook page.

https://developers.facebook.com/docs/reference/api/user/#photos

+2
source

I'm not sure if you can post ACTUAL GPS coordinates for the message, however
You can specify a location object for the message. You can read here for more information on creating a message and what options you can go through.
The location parameter is called place :

an object containing the identifier and name of the page associated with this location, and a location field containing geographic information, such as latitude, longitude, country, and other fields (fields will vary depending on geography and availability of information)

It looks like you can after latitude and longitude ...

0
source

Source: https://habr.com/ru/post/903038/


All Articles