What is data-urlencoded-name? I see it in the Tumblr themes but can't seem to find a definition anywhere. If someone could point me in the right direction, I'd appreciate it.
<body data-urlencoded-name="{URLEncodedName}"></body>
This attribute is specific to the Tumblr Official Theme. The value is URLEncoded string of the blogs {name} variable.
mike#home -> mike%40home
mike did this -> mike+did+this
More information on Variable Transformations.
Related
I want to add a line of code into a post with a certain tag and only that tag, I'm not sure how to go about that since I don't see any kind of class with each post.
Can someone point me in the right direction?
I believe you would not be able to do that by tag, because Tumblr doesn't associate individual tags with a class, but you could in theory do this for post type (Text, Photo, Quote, etc.)
I've came across this page https://www.tumblr.com/examples/share/sharing-links-to-articles.html which shows a possible way to customly create a share URL for tumblr.
Simplified version of what they have:
Click to share
http://jsfiddle.net/m5ow6bhs/2/
This will take you to the log in page or straight to the share page if you're already logged in. However, if you change the http%3A%2F%2F part to a simple http:// it will now load to a "Not Found Page". http://jsfiddle.net/m5ow6bhs/3/ What the hell Tumblr?
Do you guys have any idea what's going on or what's the correct code to share something to Tumblr?
Cheers.
As with most share services, the URL should be passed as an encoded string. This supports the OPs comments about http%3A%2F%2F(encoded) and http:// (raw).
Tumblr provides variable transformations in the theme operators to handle encoding, but sadly it doesn't work with custom variables.
One quick solution is to drop the http:// part. Example: http://jsfiddle.net/L9jd8dhz/
I have discovered as of recently that the share URL needs to be updated as such:
https://www.tumblr.com/widgets/share/tool?shareSource=legacy&canonicalUrl=<-urlencode(share_url)->&posttype=link
The &posttype= seems to be a new requirement to make the share work correctly.
I am working on an online store.
It's made with Prestashop 1.3.6
I am trying to embed a like and send button in the product page.
I have set up my og tags,and tested it with the debugger.
My problem is that the tags only get read by facebook if I hardcode them in the header.tpl.
If I pass smarty variables the tags appear as empty.
It's kind of driving me crazy because I can not find someone with the same problem.
The tags appear in the browser source code in both cases (hard-coded and variable).
But facebook reads them only when I hardcode them.
Here is the link to my site,maybe you can figure it out.
The thing that I don't understand is that before putting og:tags,facebook was taking the default title and description tags off my page.
And those tags were passed by variable.
So I really don't understand why it doesn't work.
Any ideas ?
Thanx a lot in advance!
I hope this is the right place to ask this. If not could any of you please tell me where I might get an answer to this question please. I have search everywhere and find nothing.
I'm helping a friend with a site and she is use XSitePro blogging software. XSP does not allow you to edit the tag but we need to add the FB Namespace to her pages.
Is there any way to add this if the html tag can't be changed?
Thanks,
Terry
You can add the namespace to the document through script. Something like:
document.documentElement.setAttribute("xmlns:fb", "http://www.facebook.com/2008/fbml");
You supplied an Open Graph type via
one of the supported meta tags, but
the type you specified "link" is not
valid.
The above is the error I get when the "LIKE" button is clicked.
I tried to set all sorts of OG meta tags. You can see the code live at http://luxe.sonikastudios.com
I looked at many different forums etc. but no clear answer is given. I don't even have an og type "link" specified.
I put my page through the linter provided by Facebook (http://developers.facebook.com/tools/lint/) and I don't see any errors coming up as far as I can tell (but then I don't even know what this screen is supposed to look like in case there is an error).
Any help would be appreciated.
Appears to be a known FB Bug: http://bugs.developers.facebook.net/process_bug.cgi
I think it doesn't like your <meta property="fb:link"> tag. Where did you get it from?
Just remove everything and leave only required params listed here. I would also recommend setting type to article. See if that works. If it does then start adding new params one by one until it fails.