shareFB
Supported Version
zpa
Only supported in Zalopay AppDescription
Open a dialog to share information to Facebook
Parameters
Param | Data type | Required | Description |
---|---|---|---|
url | string | Yes | Url to the content to share |
hashtag | string | No | Hashtag attached to shared content |
quote | string | No | Content needs to be shared |
Return Value
N/A
Error Code
Error Code | Description |
---|---|
041201 | Cannot find current webview |
041202 | Share Facebook failed |
041203 | User cancels sharing to Facebook |
041204 | Cannot open Facebook share dialog |
Sample Code and Sample Return Data
Sample Request:
window.zlpSdk.UI
.shareFB({ url: "https://link.facebook.example.com" })
.then((response) => console.log(response))
.catch((error) => console.error(error.errorCode));
Sample Response:
{ data: {}, status: "success" }