Issue
i am trying to integrate facebook share as feed to our website using ngx-facebook.facebook. share as feed works when i share the websites domain name only
ie.,
https://www.website.in (works)
but it's not working a specific path in website
https://www.mywebiste.in/view-profile/123 (not working )
i have checked some other platform (mobile,server side rendering ) of our websites for confirmation .
there it works perfectly
const options: UIParams = {
method: "feed",
link:'https://www.mywebsite.com/listen',
};
this.fb
.ui(options)
.then((res: UIResponse) => {
console.log("Got the users profile", res);
})
.catch(this.handleError);
Solution
Actually the share text is getting from our backend through api.
(www.wbs.com/profile/view/7x5j) and sharing as feed not working when i passed above as link so i hardcoded the our website's domain and with it sharing as feed worked properly in local host.
and i hardcoded the coming link also for testing but it didn't work in localhost
after some experiment i checked the same functionality after pushing to staging server where it's domain is starting with https sharing as feed working there
but still i don't why sharing a specific url like above not working in localhost, and sharing domain urls ( https://www.wbs.com ) working
Answered By - Dojo
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.