1.0.3 • Published 5 years ago

core-fb-ogshares v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

About Core FB OGShares

Nothing, we only test and love make something that is not clear xD. This package use to create a Facebook share url with ease

Usage

Simple usage...

const Share = require('core-fb-ogshares'),
  share = new Share('appid', 'url app redirect');

share.build({
  'url': 'url redirect',
  'image': 'url image'
});

Constructor

Share Constructor have 2 argument.

argumentTypeDescription
1stringYour app's unique identifier
2stringThis not redirect url, but this is url in your app, only use becaus is required. (without scheme/http/https)

Build parameters share.build(data, options)

In build function have 2 argument, data and options

build data in argument 1 use for action_properties

KeyTypeDescription
titlestringTitle content
urlstringurl redirect, is required!
imagestringUrl image, is required!
descriptionstringDescription content

build options in argument 2 is optionals

KeyTypeDescription
action_typestringAvaiable og.shares and og.likes, default is og.likes
displaystringAvaiable popup and touch, default is popup
versionstringApp version, default is v2.11

This package uses https://github.com/knowledgecode/jquery-param from knowledgecode for jQuery.param() alternative

License

The Core FB OGShares is open-sourced software licensed under the MIT license.

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago