2 sam2kb Oct 24, 2012 03:35

for anyone reading this, turns out, there is no way to "transfer" your likes when you change your url structure.
Hey, I forgot that we can add redir=no param. Try it with $fb_url
@tilqicom: you can transfer likes, basically by keep using the old og:url: http://facebook.stackoverflow.com/a/10152342/15690
I just did that with a platform where the domain changed.
blueyed wrote:
@tilqicom: you can transfer likes, basically by keep using the old og:url: http://facebook.stackoverflow.com/a/10152342/15690
I just did that with a platform where the domain changed.
Well, sam2kb helped adding old meta but because of the redirect it did not work.
He did say above something about a redir param but i have no idea what he meant by that, and what i should do
I mean isnt there a way to let facebook record og:url as index.php?pid and dont get involved with pretty urls ?
Sure, you can put whatever in og:url - however, when moving domains/url's, you want to keep the previous one.
I am not sure if b2evo adds og:url itself in default templates etc..
I just came across this thread and wanted to leave a pointer at the fix for it.
Thanks for the tip, checked that topic but i am not sure what to do
With "redir=no" you can use any valid URL b2evo will not redirect you to canonical URL.
Say, you can use index.php?p=444&redir=no and you won't be redirected to index.php/post-title
So as suggested above, try meta og:url with your old b2evo URLs ending on "redir=no"
sam2kb wrote:
With "redir=no" you can use any valid URL b2evo will not redirect you to canonical URL.
Say, you can use index.php?p=444&redir=no and you won't be redirected to index.php/post-title
So as suggested above, try meta og:url with your old b2evo URLs ending on "redir=no"
well, appending index.php?p=id&redir=no causes invalid request for me:
http://tilqi.com/index.php?p=1425&redir=no
and /permalink&redir=no causes a 404 (which i redirect to home).
This one works, also try index.php with blog=x
http://www.tilqi.com/resimli-sozler.php?p=1425&redir=no
XX is the ID for "resimli-sozler" blog
http://www.tilqi.com/index.php?p=1425&blog=XX&redir=no
Oh, i was missing blog=x there.It throws a warning though:
Open Graph Warnings That Should Be Fixed
Mismatch og:url and canonical url og:url tag in the header is not the same URL as rel='canonical' link in the html.
Seems like i will lose some more likes, but on the bright side, i will finally be able to fix my og:url for future without any dependency, regardless of permalink, blog name, subdomain etc. etc.
Alex wrote:
This one works, also try index.php with blog=x
http://www.tilqi.com/resimli-sozler.php?p=1425&redir=noXX is the ID for "resimli-sozler" blog
http://www.tilqi.com/index.php?p=1425&blog=XX&redir=no
Here's the function you can use in _skin.class.php to extract URL parts