jquery - multiple Facebook Send Buttons and titles not working + Ruby on Rails -


i have list of partials each include facebook send button addthis. issue i'm running this: facebook send button allows pass in parameter url want show, own of title of page on. specify title of facebook link gets sent whatever want, rather looking @ title in header of layouts/application.html.erb file. each partial in list intended have unique title , url page designated item solely. have 2 specific questions, , welcome advice on subject beyond scope of these questions:

question 1:

is bad idea, in general, have more 1 facebook send button on page? due issue i'm having, i've assumed intention button used once per page title lookup makes little more sense. way you'd have provide title using content_for helper each page or something. however, still have twitter button , email button each partial well. expensive (too load page, initially)?

question 2:

would bad idea attempt change title of page every facebook send action purpose of sending correct title on facebook? i'm worried things seo , things of nature, sure i'm leaving out other concerns well. although, of administrators page managing these items 1 one, , isn't meant searchable general public.

i hoping advice on these questions in general sense. in advance!

update:

i able working adding following page sharing, not page on:

<% content_for :title %>     <meta property="og:title" content="<%= @f.g.name %> - <%= @f.title %>"> <% end %> 

and adding following application.html.erb layout view file:

<%= yield :title %> 

even though adding these meta tags happens on fly, happens before facebook it's scraping on server title or open graph meta tag, works out. hope helps else!

is bad idea, in general, have more 1 facebook send button on page?

no, of course not.

would bad idea attempt change title of page every facebook send action purpose of sending correct title on facebook?

you mean client-side? not work @ all, because facebook’s scraper request url server info.

you can pass own values title, description, image … when use feed dialog or old sharer.php) – still info fb able extract document when user shares link manually.

you should put appropriate open graph meta tags documents.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -