Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getRawLinks() function working with linkedin, twitter, whatsapp, instagram. #95

Open
techibaba opened this issue May 26, 2022 · 1 comment

Comments

@techibaba
Copy link

ERROR
htmlspecialchars(): Argument #1 ($string) must be of type string, array given

When using the getRawLinks() function with linkedin, twitter, instagram and other it pops up with the error above, please help.

Though its working fine with facebook.

@leemonCodeShaper
Copy link

I am facing the same problem here. When I call this,
Share::currentPage()->twitter()->getRawLinks()
it returns,
array:2 [▼ "facebook" => ".......dummy link" "twitter" => ".......dummy link" ]
So, It return previously generated all links whenever I called getRawlinks().
Simply problem is fixed with calling array index.
Share::currentPage()->twitter()->getRawLinks()['twitter']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants