Snapchat and Foursquare have entered into a partnership to power location-based geofilters and enable more targeted advertising.