I am working on a site that displays a list of venues and would like to add a Foursquare 'save' button for each venue in the list. Is it possible to show multiple Foursquare 'save' buttons on a single page? I've tried creating multiple vCard blocks (one for each venue) and inserting a 'save' button in each block but the locations are not being picked up.
相关问题
- Identify a UIButton that is pressed in swift?
- Foursquare Trending API Not giving result
- curl -u equivalent in .Net WebClient class
- Address book DB schema
- Google Rich Snippets & Warning Messages
相关文章
- Google Rich Snippets & Warning Messages
- FourSquare API for iphone
- Foursquare SDK for .net
- How do I set the license for images on my site in
- Creating Grouped UITableview with Different Cell T
- Use of FourSquare API to find nearby places in iOS
- How to use categoryId in Foursquare Venues search
- How to crawl foursquare check-in data?
The in-progress docs for the save-to-foursquare widget are accessible @ https://developer.foursquare.com/overview/widgets. They'll be cleaned up over time, but should be good enough to help this and future widget-related questions =).
In particular, documentation about the "data-context" attribute you need will be pushed to the linked page soon.
Try this with "data-vid":
After inspecting the source of the
widgets.js
andwidgets.asyncbundle.js
I discovered that setting thedata-context
atribute of the 'Save to Foursquare' button to the ID of the VCard will link these two. Like so:But for the fact that this isn't documented, it may be changed in the near future.