Learn R Programming

opengraph (version 0.0.2)

og_create: Create Open Graph meta tags

Description

Create Open Graph meta tags

Usage

og_create(title, type, image, url, ...)

Value

A character vector of Open Graph meta tags

Arguments

title

The title of your object as it should appear within the graph

type

The type of your object, e.g., "video.movie". Depending on the type you specify, other properties may also be required.

image

An image URL which should represent your object within the graph.

url

The canonical URL of your object that will be used as its permanent ID in the graph

...

Additional Open Graph properties

Examples

Run this code
og_create(
  title = 'Process the Open Graph Protocol',
  type = 'website',
  image = 'http://christophertkenny.com/opengraph/logo.png',
  url = 'https://christophertkenny.com/opengraph/',
  description = 'Parse metadata on websites which use the Open Graph Protocol.'
)

Run the code above in your browser using DataLab