[英]Get/Set audience for Open Graph Post
Is it possible to get OR set the audience (FRIENDS, ONLY ME, PUBLIC) of an Open Graph Story post? 是否有可能获得或设置Open Graph Story帖子的听众(朋友,仅我,公众)? According to developers.facebook there should be a field for the privacy setting. 根据developers.facebook的说法,应该有一个用于隐私设置的字段。 My application does have the publish-permission:"publish_actions" and the read-permissions: "public_profile", "email", "user_posts". 我的应用程序确实具有publish-permission:“ publish_actions”和读取权限:“ public_profile”,“ email”,“ user_posts”。
When i make the following request (iOS): 当我发出以下请求(iOS):
FBSDKGraphRequest(graphPath: "postid", parameters: nil, HTTPMethod: "GET")
i get this response: 我得到这个回应:
{
data = {
location = {
id = 00000000000;
title = "Sample title";
type = "my_namespace:location";
};
};
"end_time" = "2016-02-01T09:35:35+0000";
id = postid;
"start_time" = "2016-02-01T09:35:35+0000";
type = "my_namespace:check_in";
} }
It does not contain any type of privacy field. 它不包含任何类型的隐私字段。 Is there a way to get it or even set it? 有没有办法得到甚至设置它?
According to 根据
you can set the privacy
field with an object of 您可以使用以下对象设置“ privacy
字段
{
"value": "YOUR_VALUE"
}
where YOUR_VALUE
must be one of 'EVERYONE', 'ALL_FRIENDS', 'FRIENDS_OF_FRIENDS', 'CUSTOM', 'SELF'
. 其中YOUR_VALUE
必须是'EVERYONE', 'ALL_FRIENDS', 'FRIENDS_OF_FRIENDS', 'CUSTOM', 'SELF'
。
Keep in mind that the privacy
field 请记住, privacy
字段
Determines the privacy settings of the post. 确定帖子的隐私设置。 If not supplied, this defaults to the privacy level granted to the app in the Login Dialog. 如果未提供,则默认为 “登录”对话框中授予该应用程序的隐私级别 。 This field cannot be used to set a more open privacy setting than the one granted . 此字段不能用于设置比已授予的设置更开放的隐私设置 。
您必须附加参数?fields=privacy
才能检索隐私设置数组。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.