MetaFox

Instagram extends Facebook
in package

Tags
SuppressWarnings

(PHPMD)

Table of Contents

Constants

FACEBOOK_GRAPH_POST  = 'oembed_post'
FACEBOOK_GRAPH_VIDEO  = 'oembed_video'

Properties

$appId  : string
$appSecret  : string
$graphDomain  : string
$graphVersion  : string
$patterns  : array<string|int, mixed>

Methods

__construct()  : mixed
parseUrl()  : array<string|int, mixed>|null
setOptions()  : void
verifyUrl()  : bool
get()  : Response
getEndpoint()  : string
getOEmbed()  : string
getToken()  : string
isVideo()  : bool

Constants

FACEBOOK_GRAPH_POST

public mixed FACEBOOK_GRAPH_POST = 'oembed_post'

FACEBOOK_GRAPH_VIDEO

public mixed FACEBOOK_GRAPH_VIDEO = 'oembed_video'

Properties

$graphDomain

private string $graphDomain = 'https://graph.facebook.com'

$graphVersion

private string $graphVersion = '8.0'

$patterns

private array<string|int, mixed> $patterns = ['/http(?:s?):\\/\\/(?:www\\.|web\\.|m\\.)?facebook\\.com\\/([A-z0-9\\.]+)\\/videos(?:\\/[0-9A-z].+)?\\/(\\d+)(?:.+)?$/', '/http(?:s?):\\/\\/(?:www\\.|web\\.|m\\.)?facebook\\.com\\/(reel)(?:\\/[0-9A-z].+)?\\/(\\d+)(?:.+)?$/', '/http(?:s?):\\/\\/(fb\\.watch)\\/([A-z0-9_\\-]+)/']

Methods

__construct()

public __construct([array<string|int, mixed> $options = [] ]) : mixed
Parameters
$options : array<string|int, mixed> = []

parseUrl()

public parseUrl(string $url) : array<string|int, mixed>|null
Parameters
$url : string
Return values
array<string|int, mixed>|null

setOptions()

public setOptions(array<string|int, mixed> $options) : void
Parameters
$options : array<string|int, mixed>

verifyUrl()

public verifyUrl(string $url[, mixed &$matches = [] ]) : bool
Parameters
$url : string
$matches : mixed = []
Return values
bool

get()

protected get(string $url[, array<string|int, mixed> $query = [] ][, array<string|int, mixed> $headers = [] ]) : Response
Parameters
$url : string
$query : array<string|int, mixed> = []
$headers : array<string|int, mixed> = []
Return values
Response

getEndpoint()

protected getEndpoint(string $url) : string
Parameters
$url : string
Return values
string

getOEmbed()

protected getOEmbed(string $url) : string
Parameters
$url : string
Return values
string

getToken()

protected getToken() : string
Return values
string

isVideo()

protected isVideo(string $url) : bool
Parameters
$url : string
Return values
bool

        
On this page

Search results