获取/设置Open Graph Post的受众群体 [英] Get/Set audience for Open Graph Post
问题描述
是否可以获得或设置一个开放图表故事帖子的观众(朋友,只有我,公开)?根据 developers.facebook ,应该有一个字段隐私设置。我的应用程序确实具有publish-permission:publish_actions和读权限:public_profile,email,user_posts。
当我提出以下请求(iOS):
Is it possible to get OR set the audience (FRIENDS, ONLY ME, PUBLIC) of an Open Graph Story post? According to developers.facebook there should be a field for the privacy setting. My application does have the publish-permission:"publish_actions" and the read-permissions: "public_profile", "email", "user_posts".
When i make the following request (iOS):
FBSDKGraphRequest(graphPath: "postid", parameters: nil, HTTPMethod: "GET")
我得到这个回复:
{
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?
推荐答案
根据
- https://developers.facebook.com/docs/graph-api/reference/user/feed#publish
您可以设置
{
"value": "YOUR_VALUE"
}
其中 YOUR_VALUE
必须是'EVERYONE','ALL_FRIENDS','FRIENDS_OF_FRIENDS','CUSTOM','SELF'
。
请记住,隐私
字段
确定帖子的隐私设置。如果没有提供,则此默认为登录对话框中授予应用的隐私级别。 此字段不能用于设置比授予的更加公开的隐私设置。
这篇关于获取/设置Open Graph Post的受众群体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!