Class SocialLib
provide social network functions from http://developers.facebook.com and https://dev.twitter.com
Methods summary
public
string
|
#
fb_share( string $url, string $title = '' )
genate the url/link to share the content of a webpage
genate the url/link to share the content of a webpage
Parameters
- $url
- to the content should be shared
- $title
Returns
string
|
public
string
|
#
gplus_share( string $url, string $lang_code = '' )
genate the url/link to share the content of a webpage
genate the url/link to share the content of a webpage
Parameters
- $url
- to the content should be shared
- $lang_code
Returns
string
|
public
string
|
#
pinterest_share( string $media_url, string $url = '', string $description = '' )
genate the url/link to share the content of a webpage
genate the url/link to share the content of a webpage
Parameters
- $media_url
- to the content should be shared
- $url
- of content page
- $description
Returns
string
|
public
string
|
#
TinyURL( string $url )
create a tiny url
Parameters
Returns
string
|
public
string
|
#
googleURLshortener( string $url, boolean $retQR_Code = false, string $key = "" )
create a short url or a QR code via Google URL shortening service (require CURL)
Key maybe required in future. Please see also the courtesy limit of the service, also it could be that Google offer the service only as paid service in future. For more see https://code.google.com/apis/console/
create a short url or a QR code via Google URL shortening service (require CURL)
Key maybe required in future. Please see also the courtesy limit of the service, also it could be that Google offer the service only as paid service in future. For more see https://code.google.com/apis/console/
Parameters
Returns
string
|
public
mixed
|
#
googleShortenerAnalytics( string $shortURL, boolean $retGUI_URL = false, string $key = "" )
return an array with the analytics data to a Google shortening url or the url to the web GUI of google
Key maybe required in future. Please see also the courtesy limit of the service, also it could be that Google offer the service only as paid service in future. For more see https://code.google.com/apis/console/
return an array with the analytics data to a Google shortening url or the url to the web GUI of google
Key maybe required in future. Please see also the courtesy limit of the service, also it could be that Google offer the service only as paid service in future. For more see https://code.google.com/apis/console/
Parameters
- $shortURL
- $retGUI_URL
- $key
Returns
mixed
|
public
string
|
|