Open Graph metadata

profile:gender

Sets the Open Graph gender value for the person represented by a profile page. The protocol only defines male and female.

Code examples

Good example
<meta property="profile:gender" content="male">
One of the two values defined by Open Graph.
Good example
<meta property="profile:gender" content="female">
The other value defined by Open Graph.
Avoid this example
<meta property="profile:gender" content="man">
Not a member of the Open Graph enum.
Avoid this example
<meta property="profile:gender" content="unspecified">
Not a defined value. Omit the property when no supported value applies.

Recommendations

  • 01
    Use Only When Appropriate
    Omit the property if neither supported value fits the person or you do not have a reason to publish it.
  • 02
    Correct Syntax
    The Open Graph enum accepts male or female. Values such as unspecified are not part of the protocol.

Related documentation

Related meta tags

Provides the given name of the person represented by a profile page.

<meta property="profile:first_name" content="John">
A given name written as plain text.

Sets the Open Graph gender value for the person represented by a profile page. The protocol only defines male and female.

<meta property="profile:gender" content="male">
One of the two values defined by Open Graph.

Provides the family name of the person represented by a profile page.

<meta property="profile:last_name" content="Doe">
A family name written as plain text.

Provides a short, unique username for the person represented by a profile page.

<meta property="profile:username" content="exampleuser">
A short username without a platform-specific @ prefix.