-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
publish: support location (not in Facebook API) #317
Comments
related to #318. |
I think this would be useful as an aspect of any post type, not just "check-ins". E.g. notes have locations, photos have locations etc. similar to making #459 apply to more than just photos. Encountered need: http://indiewebcamp.com/irc/2015-09-01/line/1441139465398 |
twitter now supports this too: https://dev.twitter.com/rest/reference/post/statuses/update |
for Flickr, I suggest looking for a h-geo tag, as Flickr accepts latitude/longitude. This is a snippet from a PHP code that does this for Flickr:
|
@petermolnar I pushed some changes that should make this work for Flickr. Could you test it when you have a chance? Thanks! |
the catch with facebook that i hand waved past initially is that we have to use a location from their database. specifically, we'd search for candidates, choose one somehow, and includes its id in the the "choose one" part is the hard part. it implies UI, or at least multiple round trips and more interface functionality in bridgy publish, which we're trying to avoid. @kylewm mentioned that he started down this road in silo.pub and hit the same difficulties. we could do it if they include a link to the facebook place page in their post, though. something like |
A tiny bit of exploration, some place URLs are like https://www.facebook.com/The-Creamery-276261304155/ or The place ID is predictably the # after the slug. Some are like https://www.facebook.com/bstreetandvine (this seems rare, I wonder if they were grandfathered in) Where you can request graph.facebook.com/v2.5/bstreetandvine and get
When creating a POST, setting the "place" field to this ID seems to work (although it makes it look like a big stupid checkin instead of a simple post with a location) e.g. |
Also, for reference I tried to implement place/location for Facebook in silo.pub I used |
bridgy publish for facebook will disappear soon (#817), so I'm closing open issues for it. sad. feel free to holler if you disagree. |
looks like we'd just need to convert p-location and/or u-checkin to the place param in the/user/feed POST.
https://developers.facebook.com/docs/graph-api/reference/v2.2/user/feed
(thanks for not mentioning that I hand waved past a hard part or two there. nice of you. :P)
status:
The text was updated successfully, but these errors were encountered: