简体   繁体   English

如何确定Facebook API v2.4中的事件隐私?

[英]How to determine event privacy in Facebook API v2.4?

I am writing a facebook app which needs to access a user's event invitations. 我正在编写一个Facebook应用程序,该应用程序需要访问用户的事件邀请。 I would like it to retrieve the location data of the event, but only if it is a PUBLIC event. 我希望它检索事件的位置数据,但前提是它是PUBLIC事件。

In v2.4, I can access detailed location data like country, latitude, and longitude, all of which I need for my purposes, which I cannot access in v2.3. 在v2.4中,我可以访问详细的位置数据,例如国家/地区,纬度和经度,这些都是我需要的,而在v2.3中则无法访问。 However, it seems that I can access the event's privacy parameter in v2.3, but not v2.4. 但是,看来我可以在v2.3中访问事件的privacy参数,但不能在v2.4中访问。

When I attempt to access the privacy field in Facebook's Explorer tool with GET/v2.4/{event-id}/?fields=privacy , I receive this: 当我尝试使用GET/v2.4/{event-id}/?fields=privacy访问Facebook Explorer工具中的privacy字段时,收到以下消息:

{ "error": { "message": "(#12) privacy field is deprecated for versions v2.4 and higher", "type": "OAuthException", "code": 12 } }

Furthermore, a var_dump of a graphEdge object created from get('/me/events/not_replied') does not show privacy information anywhere. 此外,从get('/me/events/not_replied')创建的graphEdge对象的var_dump不会在任何地方显示隐私信息。

Is there really no way to determine an event's privacy in v2.4? 在v2.4中,真的没有办法确定事件的隐私吗? Are there any known workarounds to determine whether an event is private or not without rolling back to v2.3 and losing detailed location data? 是否有任何已知的解决方法来确定事件是否为私人事件,而不回滚至v2.3并丢失详细的位置数据?

I think they renamed it type. 我认为他们将其重命名为类型。 When I request back ?fields=type I get "type": "public". 当我请求返回?fields = type时,我得到“ type”:“ public”。

hope this helps... 希望这可以帮助...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM