当通过foursquare API签到时,我没有在Here Now中显示出来。[英] When checking in via foursquare API, I do NOT show up in Here Now

本文是小编为大家收集整理的关于当通过foursquare API签到时,我没有在Here Now中显示出来。的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

不确定这是否与 (似乎是,但我不能只评论答案,我还没有答案,但想添加我在这个问题上的经验).

我在Windows Phone上使用了3个FourSquare应用程序.官方应用程序,第四和市长以及我自己的应用程序.我还通过foursquare.com/mobile checkins进行了体验.

使用官方应用程序和我的应用程序,当我检查到场地时,无论是从电话应用程序还是在网站上或在API呼叫中查看JSON,我都不会出现在"现在"中.在检查我的"最后一次见面"时,它向我展示了那里. 使用第四和市长,它是命中或错过的.有时我会出现在"现在"中(在所有应用程序和网站中),有时我不这样做.

一件事要注意,当它最终在一个场地上显示我的"现在",如果我检查到另一个地点,并且我不在"现在"中出现在"现在","现在"向我展示那里,所以这没有清除. "最后在新的场所都向我展示了我.

我没有检查网格,我确实有"将我纳入目前在场地上被检查的人的公开列表".甚至尝试取消选中并进行检查.我已经尝试使用2个不同的帐户,并且我尝试过有没有喊叫的情况,没有与Facebook和Twitter共享,以及正常和快速的检查选项.所有结果都相同.

请注意,我不仅依靠应用程序向我展示我在地点,而且我正在查看从API返回的RAW JSON,无论是从我的应用程序还是API Explorer @ developer.foursquare. com.

如果有帮助,这是我的应用程序中的HTTP帖子(删除了地点和Oauth令牌):

.com/v2/checkins/add?broadcast = public,facebook&venueid = the_venue_id&oauth_token = my_token&v = 20111030

我什至尝试将版本更改为&v = 20120107,但仍然不起作用. 我还登录了我能想到的地方,甚至断开了我的Facebook和Twitter帐户的连接.

直到最近才开始,在过去的几天内.

so,总而言之,

  • 当我检查一下时,我现在不在这里出现,无论是从地点/venue_id端点,地点/搜索端点(我现在不计入此处),或者是venues/venue_id/herenow端点.<<<<<<<<<<<<<<./li>
  • 我的检查确实通过用户/self和Checkins/最近的端点出现.

使用的应用程序:Windows Phone,4th&Myor,我自己的Windows Phone应用程序和Foursquare.com/mobile.

推荐答案

您可能不会出于各种原因出现在Herenow中:

1)如果用户在没有LAT/LNG的情况下入住检查,我们认为记录保存签到,并且可能不会在Herenow中显示用户,因为我们不知道他们是否真的在那里

2)如果用户使用足够远离场地的LAT/LNG检查,我们可能不会在Herenow中显示用户.

查看您的请求,看来您没有将当前的LAT/LNG传递给API,这很可能会让您(1).

官方的应用程序 + 4th&市长应按照手机报告的LAT/LNG传递.我认为Herenow不会更新的唯一原因是,您是否要登机到您不在的地点,或者手机的GPS外观不佳.

如果您确实开始将LAT/LNGS传递给API服务器,请确保您正在报告公正设备报告的用户实际位置(例如手机的OS).否则不执行此操作可能会导致您的申请被禁用而无需通知.

本文地址:https://www.itbaoku.cn/post/2090853.html

问题描述

Not sure if this is related to this question (seems to be but I cannot comment only answer and I don't have one yet but would like to add my experience with this issue).

There are 3 foursquare apps I use on my Windows Phone. The official app, 4th & Mayor, and my own app. I've also experienced this via foursquare.com/mobile checkins.

Using the official app and my app, when I checkin to a venue, I do not show up in "Here Now" whether from phone apps or on the website or looking at the json from the API calls. When checking my "last seen at" it shows me there. Using 4th & Mayor it's hit or miss. Sometimes I'll show up in "Here Now" (within all apps and the website) and sometimes I don't.

One thing to note, when it finally does show me in "Here Now" at a venue, if I checkin to another venue and I do NOT show up in "Here Now", "Here Now" for the old venue still shows me there, so it's not clearing that out. "Last seen at" shows me in the new venue.

I'm not checking in off the grid and I do have the "Include me in the public list of people who are currently checked in at a venue" checked. Even tried unchecking it and checking it back. I've tried with 2 different accounts and I've tried with and without shouts, with and without sharing to facebook and twitter, and the normal and quick checkin options. All with the same results.

NOTE that I'm not just relying on the apps showing me that I'm at a venue, I'm looking at the raw json returned from the API, both from my app and the API Explorer @ developer.foursquare.com.

If it helps, here's the HTTP Post from my app (venue and oauth token removed):

https://api.foursquare.com/v2/checkins/add?broadcast=public,facebook&venueId=the_venue_id&oauth_token=my_token&v=20111030

I've even tried changing the version to &v=20120107 and it still doesn't work. I've also logged out everwhere I could think of and even disconnected my facebook and twitter accounts.

It is only recently this has started, within the past couple days.

So, in summary,

  • When I checkin I do not show up in Here Now, either from the venues/VENUE_ID endpoint, the venues/search endpoint (I'm not counted in the here now), or the venues/VENUE_ID/herenow endpoint.
  • My checkin does show up via users/self and via the checkins/recent endpoint.

Apps used: foursquare for Windows Phone, 4th & Mayor, my own Windows Phone app, and foursquare.com/mobile.

推荐答案

You may not appear in herenow for a variety of reasons:

1) If a user checks in without a lat/lng, we consider that a record-keeping check-in and may not display the user in herenow since we have no idea if they are actually there or not

2) If the user checks in with a lat/lng that is sufficiently far away from the venue, we may not display the user in herenow.

Looking at your request, it would appear that you're not passing your current lat/lng to the API, which would likely put you in case (1).

The official app + 4th & Mayor should be passing your lat/lng as reported by your phone. The only reason I can think that herenow wouldn't update is if you're checking in to a venue you are not near to, or if your phone has a poor GPS look.

If you do start passing lat/lngs to the API servers, be sure that you are reporting the user's actual location as reported by an impartial device (like the phone's OS). Failure to do otherwise may cause your application to be disabled without notice.