Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
社交图API返回的Facebook字段列表_Facebook_Facebook C# Sdk - Fatal编程技术网

社交图API返回的Facebook字段列表

社交图API返回的Facebook字段列表,facebook,facebook-c#-sdk,Facebook,Facebook C# Sdk,有人知道Facebook社交图API是否可以返回权威的字段列表吗?例如,Author对象返回的字段与Company对象不同。是否有所有可能字段和数据类型的列表?查看官方社交图API文档: 在“对象”部分下,有一个叫做graph API explorer的工具。 如果要查找端点上可返回的所有字段,只需将metadata=1添加到查询中,就可以通过在左侧键入“搜索字段”来搜索字段名。。。就像“放置一个有效的访问令牌”一样,问题是列出字段以便快速使用,而不仅仅是显示如何使用 这是Facebook G

有人知道Facebook社交图API是否可以返回权威的字段列表吗?例如,Author对象返回的字段与Company对象不同。是否有所有可能字段和数据类型的列表?

查看官方社交图API文档:


在“对象”部分下,有一个叫做graph API explorer的工具。


如果要查找端点上可返回的所有字段,只需将metadata=1添加到查询中,就可以通过在左侧键入“搜索字段”来搜索字段名。。。就像“放置一个有效的访问令牌”

一样,问题是列出字段以便快速使用,而不仅仅是显示如何使用

这是Facebook Graph API Explorer迄今为止检索到的字段列表(53),使用Facebook应用程序(web画布)的默认权限访问令牌作为json格式:

{
  "metadata": {
    "fields": [
      {
        "name": "id",
        "description": "The id of this person's user account. This ID is unique to each app and cannot be used across different apps. [Our upgrade guide provides more information about app-specific IDs](/docs/apps/upgrading/#upgrading_v2_0_user_ids)",
        "type": "numeric string"
      },
      {
        "name": "about",
        "description": "Equivalent to the `bio` field",
        "type": "string"
      },
      {
        "name": "admin_notes",
        "description": "Notes added by viewing page on this person",
        "type": "list<pageadminnote>"
      },
      {
        "name": "age_range",
        "description": "The age segment for this person expressed as a minimum and maximum age. For example, more than 18, less than 21.",
        "type": "agerange"
      },
      {
        "name": "birthday",
        "description": "The person's birthday.  This is a fixed format string, like `MM/DD/YYYY`.  However, people can control who can see the year they were born separately from the month and day so this string can be only the year (YYYY) or the month + day (MM/DD)",
        "type": "string"
      },
      {
        "name": "context",
        "description": "Social context for this person",
        "type": "usercontext"
      },
      {
        "name": "cover",
        "description": "The person's cover photo",
        "type": "coverphoto"
      },
      {
        "name": "currency",
        "description": "The person's local currency information",
        "type": "currency"
      },
      {
        "name": "devices",
        "description": "The list of devices the person is using. This will return only iOS and Android devices",
        "type": "list<userdevice>"
      },
      {
        "name": "education",
        "description": "The person's education",
        "type": "list<educationexperience>"
      },
      {
        "name": "email",
        "description": "The person's primary email address listed on their profile. This field will not be returned if no valid email address is available",
        "type": "string"
      },
      {
        "name": "employee_number",
        "description": "The person's employee number, as set by the company via SCIM API",
        "type": "string"
      },
      {
        "name": "favorite_athletes",
        "description": "Athletes the person likes",
        "type": "list<experience>"
      },
      {
        "name": "favorite_teams",
        "description": "Sports teams the person likes",
        "type": "list<experience>"
      },
      {
        "name": "first_name",
        "description": "The person's first name",
        "type": "string"
      },
      {
        "name": "gender",
        "description": "The gender selected by this person, `male` or `female`. This value will be omitted if the gender is set to a custom value",
        "type": "string"
      },
      {
        "name": "hometown",
        "description": "The person's hometown",
        "type": "page"
      },
      {
        "name": "inspirational_people",
        "description": "The person's inspirational people",
        "type": "list<experience>"
      },
      {
        "name": "install_type",
        "description": "Install type",
        "type": "enum"
      },
      {
        "name": "installed",
        "description": "Is the app making the request installed?",
        "type": "bool"
      },
      {
        "name": "interested_in",
        "description": "Genders the person is interested in",
        "type": "list<string>"
      },
      {
        "name": "is_shared_login",
        "description": "Is this a shared login (e.g. a gray user)",
        "type": "bool"
      },
      {
        "name": "is_verified",
        "description": "People with large numbers of followers can have the authenticity of their identity [manually verified by Facebook](https://www.facebook.com/help/196050490547892). This field indicates whether the person's profile is verified in this way. This is distinct from the `verified` field",
        "type": "bool"
      },
      {
        "name": "labels",
        "description": "Labels applied by viewing page on this person",
        "type": "list<pagelabel>"
      },
      {
        "name": "languages",
        "description": "Facebook Pages representing the languages this person knows",
        "type": "list<experience>"
      },
      {
        "name": "last_name",
        "description": "The person's last name",
        "type": "string"
      },
      {
        "name": "link",
        "description": "A link to the person's Timeline",
        "type": "string"
      },
      {
        "name": "locale",
        "description": "The person's locale",
        "type": "string"
      },
      {
        "name": "location",
        "description": "The person's current location as entered by them on their profile. This field is not related to check-ins",
        "type": "page"
      },
      {
        "name": "meeting_for",
        "description": "What the person is interested in meeting for",
        "type": "list<string>"
      },
      {
        "name": "middle_name",
        "description": "The person's middle name",
        "type": "string"
      },
      {
        "name": "name",
        "description": "The person's full name",
        "type": "string"
      },
      {
        "name": "name_format",
        "description": "The person's name formatted to correctly handle Chinese, Japanese, or Korean ordering",
        "type": "string"
      },
      {
        "name": "payment_pricepoints",
        "description": "The person's payment pricepoints",
        "type": "paymentpricepoints"
      },
      {
        "name": "political",
        "description": "The person's political views",
        "type": "string"
      },
      {
        "name": "public_key",
        "description": "The person's PGP public key",
        "type": "string"
      },
      {
        "name": "quotes",
        "description": "The person's favorite quotes",
        "type": "string"
      },
      {
        "name": "relationship_status",
        "description": "The person's relationship status",
        "type": "string"
      },
      {
        "name": "religion",
        "description": "The person's religion",
        "type": "string"
      },
      {
        "name": "security_settings",
        "description": "Security settings",
        "type": "securitysettings"
      },
      {
        "name": "shared_login_upgrade_required_by",
        "description": "The time that the shared loginneeds to be upgraded to Business Manager by",
        "type": "datetime"
      },
      {
        "name": "significant_other",
        "description": "The person's significant other",
        "type": "user"
      },
      {
        "name": "sports",
        "description": "Sports played by the person",
        "type": "list<experience>"
      },
      {
        "name": "test_group",
        "description": "Platform test group",
        "type": "unsigned int32"
      },
      {
        "name": "third_party_id",
        "description": "A string containing an anonymous, but unique identifier for the person. You can use this identifier with third parties",
        "type": "string"
      },
      {
        "name": "timezone",
        "description": "The person's current timezone offset from UTC",
        "type": "float (min: -24) (max: 24)"
      },
      {
        "name": "token_for_business",
        "description": "A token that is the same across a business's apps. Access to this token requires that the person be logged into your app or have a role on your app. This token will change if the business owning the app changes",
        "type": "string"
      },
      {
        "name": "updated_time",
        "description": "Updated time",
        "type": "datetime"
      },
      {
        "name": "verified",
        "description": "Indicates whether the account has been verified. This is distinct from the `is_verified` field. Someone is considered verified if they take any of the following actions:",
        "type": "bool"
      },
      {
        "name": "video_upload_limits",
        "description": "Video upload limits",
        "type": "videouploadlimits"
      },
      {
        "name": "viewer_can_send_gift",
        "description": "Can the viewer send a gift to this person?",
        "type": "bool"
      },
      {
        "name": "website",
        "description": "The person's website",
        "type": "string"
      },
      {
        "name": "work",
        "description": "Details of a person`s work experience",
        "type": "list<workexperience>"
      }
    ]
  }
}
{
“元数据”:{
“字段”:[
{
“名称”:“id”,
“描述”:“此人用户帐户的id。此id对于每个应用程序都是唯一的,不能在不同的应用程序之间使用。[我们的升级指南提供了有关特定于应用程序的id的详细信息](/docs/apps/grading/#grading_v2_0_user_id)”,
“类型”:“数字字符串”
},
{
“姓名”:“关于”,
“说明”:“相当于`bio`字段”,
“类型”:“字符串”
},
{
“名称”:“管理员注释”,
“说明”:“通过查看此人页面添加的注释”,
“类型”:“列表”
},
{
“姓名”:“年龄范围”,
“描述”:“此人的年龄段表示为最低和最高年龄。例如,超过18岁,低于21岁。”,
“类型”:“Agrange”
},
{
“姓名”:“生日”,
“描述”:“此人的生日。这是一个固定格式的字符串,如‘MM/DD/YYYY’。但是,人们可以控制谁可以看到他们出生的年份,而不是月份和日期,因此此字符串只能是年(YYYY)或月+日(MM/DD)”,
“类型”:“字符串”
},
{
“名称”:“上下文”,
“描述”:“此人的社会背景”,
“类型”:“用户上下文”
},
{
“姓名”:“封面”,
“描述”:“此人的封面照片”,
“类型”:“封面照片”
},
{
“名称”:“货币”,
“说明”:“此人的当地货币信息”,
“类型”:“货币”
},
{
“名称”:“设备”,
“说明”:“此人正在使用的设备列表。这将仅返回iOS和Android设备”,
“类型”:“列表”
},
{
“名称”:“教育”,
“描述”:“个人教育”,
“类型”:“列表”
},
{
“名称”:“电子邮件”,
“描述”:“此人的个人资料中列出的主要电子邮件地址。如果没有有效的电子邮件地址,则不会返回此字段”,
“类型”:“字符串”
},
{
“姓名”:“员工编号”,
“说明”:“该人员的员工编号,由公司通过SCIM API设置”,
“类型”:“字符串”
},
{
“姓名”:“最喜爱的运动员”,
“描述”:“人喜欢的运动员”,
“类型”:“列表”
},
{
“姓名”:“最喜爱的团队”,
“描述”:“人喜欢的运动队”,
“类型”:“列表”
},
{
“姓名”:“名字”,
“描述”:“此人的名字”,
“类型”:“字符串”
},
{
“姓名”:“性别”,
“description”:“此人选择的性别,`male`或`female`。如果性别设置为自定义值,则此值将被忽略”,
“类型”:“字符串”
},
{
“姓名”:“家乡”,
“描述”:“此人的家乡”,
“类型”:“页面”
},
{
“姓名”:“鼓舞人心的人”,
“描述”:“该人的鼓舞人心的人”,
“类型”:“列表”
},
{
“名称”:“安装类型”,
“说明”:“安装类型”,
“类型”:“枚举”
},
{
“名称”:“已安装”,
“说明”:“发出请求的应用程序是否已安装?”,
“类型”:“bool”
},
{
“姓名”:“感兴趣”,
“描述”:“此人感兴趣的性别”,
“类型”:“列表”
},
{
“名称”:“是共享登录”,
“说明”:“这是共享登录(例如灰色用户)”,
“类型”:“bool”
},
{
“名称”:“已验证”,
“描述”:“拥有大量追随者的人可以拥有其身份的真实性[通过Facebook手动验证](https://www.facebook.com/help/196050490547892)。此字段指示是否以这种方式验证此人的个人资料。这与“已验证”字段不同,
“类型”:“bool”
},
{
“名称”:“标签”,
“说明”:“通过查看此人页面应用的标签”,
“类型”:“列表”
},
{
“名称”:“语言”,
“描述”:“代表此人所知语言的Facebook页面”,
“类型”:“列表”
},
{
“姓名”:“姓氏”,
“描述”:“此人的姓氏”,
“类型”:“字符串”
},
{
“名称”:“链接”,
“描述”:“指向此人时间线的链接”,
“类型”:“字符串”
},
{
“名称”:“区域设置”,
“描述”:“人员的区域设置”,
“类型”:“字符串”
},
{
“名称”:“位置”,
“描述”:“此人在其个人资料中输入的当前位置。此字段与签入无关”,
“类型”:“页面”
},
{
“姓名”:“会议目的”,
“描述”:“该人对会议感兴趣的内容”,
“类型”:“列表”
},
{
“姓名”:
id
cover
name
first_name
last_name
age_range
link
gender
locale
picture
timezone
updated_time
verified