Topic-icon sharing a different url than the current shown on browser

Active Subscriptions:

None
Hi,
We have an insession url showing in the browser url section as index.php?....
The same is also shown for the shared url on facebook share option, which is not useful, though
I am setting the url using {SCOpenGraph url= to a url that works even out of session
- it works if the current browser url is same as out-of-session url
- however it doesn;t work in out of session urls.

There is also a canonical url written by SEF. which is the index.php?... in-session url. Even after disabling this, I am facing the above issue.
Is there a way to overcome this?

Best wishes,
Pawan.
The topic has been locked.
Support Specialist
Can you explain what you mean by in-session and out of session URLs? I'm not really sure what you mean. If you can give examples using relative paths (you don't need to include the domain), that would really help as well.

As for the {SCOpenGraph url=..} tag, again, that only sets the URL for the current page. If a Like button is sharing *the current page*, the og:url will be used as a redirection to a different page instead. If your Like button is trying to share a different URL (not the current URL) the og:url tag on the current page will have no effect on the share. You'll need to set the og:url tag on the page that is being Like'd.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
We have an in-session url of the form maslowed.me/index.php?option=.... which opens a page when user is logged in. The same page can be also accessed as www.maslowed.me/Pawan/1081/physics by anyone as it doesnt need a login, and I am setting og:url to www.maslowed.me/Pawan/1081/physics on this page.
However if I use the share button when opening the page as maslowed.me/index.php?option=...., the facebook share button picks this url and not the one that can be accessed without login: www.maslowed.me/Pawan/1081/physics

I think this should be a fairly common issue, as we may want to share the out-of-session url on facebook.
Regards,
Pawan.
The topic has been locked.
Support Specialist
Pawan,
To do what you're looking for, on the maslowed.me/index.php?option= page, you want the following:
* The share/like button on that page should point to the guest page:
{JFBCLike href=https://www.maslowed.me/Pawan/1081/physics}
That will make the Like button on the page refer to the guest version of the URL. This is the most important piece. The Like button on that page needs to be for the proper URL. If it's for the 'current' page, it won't work.

* An og:url tag pointing to the non-logged in (guest) page:
{SCOpenGraph url=https://www.maslowed.me/Pawan/1081/physics}
That will make any share's or Likes that point to the index.php.. page redirect to the guest page. However, since this is a 'logged in' page, Facebook will likely never see those tags since it can't scan the page. It's still recommended to add the proper tag to it though.

I hope that helps explain,
Alex
The topic has been locked.