Re: Re: Increase post thumbnail size from s72-c to s200-c to meet Facebook's requirement
Aneesh Joseph <[email protected]>
| Newsgroups | gmane.comp.web.blogger.api |
|---|---|
| Message-ID | <CAH=e_K+K7GiimGxj4P=fydk5xn-qksmDmPuy0MCnM+f67c2XNA@mail.gmail.com> |
Did anyone manage to get data.blog.postImageUrl working? Thanks, Aneesh On Sat, Jan 10, 2015 at 9:16 PM, Aneesh Joseph <[email protected]> wrote: > Are you folks able to use data.blog.postImageUrl ? > > On my test blog, > > <script> > var thumb1= "<data:blog.postImageThumbnailUrl/>"; > var thumb2="<data.blog.postImageUrl/>"; > </script> > > is rendered as > > <script> > var thumb1= " > http://4.bp.blogspot.com/-YXf4MX0XqVE/VLFILTrXzII/AAAAAAAAAG4/EPMeSmI0auY/s72-c/9162017813_1e82f1f7ed_o.jpg > "; > var thumb2="<data.blog.postImageUrl></data.blog.postImageUrl>"; > </script> > > Thanks, > Aneesh > > > On Thu, Jan 1, 2015 at 4:11 PM, Red People Stories < > [email protected]> wrote: > >> Thanks!! I followed your instructions above, works perfectly~~~ thanks >> again!!! >> >> >> On Monday, March 17, 2014 9:18:55 AM UTC+8, NicoNico wrote: >>> >>> Hi everyone. >>> >>> Just found a solution for this issue. >>> >>> Instead of using this codes with *data:blog.postImageThumbnailUrl* data >>> tag: >>> >>> *Open Graph (for example for Facebook):* <meta expr:content='data:blog.postImageThumbnailUrl' >>>> property='og:image'/> >>> >>> *Twitter Cards*: <meta expr:content='data:blog.postImageThumbnailUrl' >>>> name='twitter:image'/> >>> >>> >>> Use *data:blog.postImageUrl* data tag, it seems to retrieve the same >>> content that *data:post.firstImageUrl* data tag with the great >>> advantage that *data:blog.postImageUrl* *can be retrieved globally in >>> any part of the template*. >>> >>> Given this fact is factible to implement *meta tags* that meets >>> Google+, Facebook, Twitter and other sites requirements, just get sure to >>> upload images to each one of your blog posts with a minimum width and >>> height of 200px for each dimension. >>> >>> So now add this code within the <head> tag of you template: >>> >>> >>> *Open Graph Protocol: <meta expr:content='data:blog.postImageUrl' >>>> property='og:image'/>* >>> >>> *Twitter Cards: <meta expr:content='data:blog.postImageUrl' >>>> name='twitter:image'/>* >>> >>> >>> >>> Best, >>> Felipe Calvo <https://plus.google.com/100728251278680111191?rel=author> >>> - https://plus.google.com/+FelipeCalvo >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Blogger Developer Group" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/bloggerdev. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/bloggerdev. For more options, visit https://groups.google.com/d/optout.