Foros del Web » Programando para Internet » Javascript »

Lightroom Web Gallery y Share de Facebook.

Estas en el tema de Lightroom Web Gallery y Share de Facebook. en el foro de Javascript en Foros del Web. Hola, alguien podra ayudarme con la aplicacion de share facebook. Este es el codigo: <a name="fb_share" type="button" href="http://www.facebook.com/sharer.php">Compartir</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script> Y este es el codigo ...
  #1 (permalink)  
Antiguo 09/03/2010, 00:44
 
Fecha de Ingreso: mayo-2005
Mensajes: 6
Antigüedad: 18 años, 10 meses
Puntos: 0
Lightroom Web Gallery y Share de Facebook.

Hola, alguien podra ayudarme con la aplicacion de share facebook.

Este es el codigo:

<a name="fb_share" type="button" href="http://www.facebook.com/sharer.php">Compartir</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

Y este es el codigo de la pagina de la cual genera la galeria Lightroom, lo acepta y lo ejecuta, pero al compartirla en facebook no me muestra la imagen me lo manda como post y no como imagen. Alguien me puede ayudar?




<meta>

<%
--[[ Define some variables to make locating other resources easier
firstPage was defined in our manifest.]]

local image = getImage( index )
local theRoot = ".."
local others = "."
local mySize = "large"
%>

<% --[[ Include the page header]] %>
<%@ include file="head.html" %>


<% --[[ Main image area ]] %>

<div id="stage2">
<div id="previewFull" class="borderTopLeft borderBottomRight">
<div id="detailTitle" class="detailText">
$image.metadata.title
</div>


<% --[[ Pagination section ]] %>



<div class="detailNav">
<ul>
<lr:Pagination>
<lr:PreviousEnabled>
<li class="previous"> <a class="paginationLinks detailText" href="$link"><%= LOC "$$$/AgWPG/Templates/HTML/output/Previous=Previous" %></a> </li>
</lr:PreviousEnabled>
<lr:PreviousDisabled>
<li class="previous detailText"> <%= LOC "$$$/AgWPG/Templates/HTML/output/Previous=Previous" %> </li>
</lr:PreviousDisabled>
<li class="index"> <a href="$gridPageLink" class="detailLinks detailText"><%= LOC "$$$/AgWPG/Templates/HTML/output/Index=Index" %></a> </li>
<lr:NextEnabled>
<li class="next"> <a class="paginationLinks detailText" href="$link"><%= LOC "$$$/AgWPG/Templates/HTML/output/Next=Next" %></a> </li>
</lr:NextEnabled>
<lr:NextDisabled>
<li class="next detailText"> <%= LOC "$$$/AgWPG/Templates/HTML/output/Next=Next" %> </li>
</lr:NextDisabled>
</lr:Pagination>
</ul>
</div>

<%
--[[
Logic for centering the image on the page. We've decided to implement a rather complicated
layout system for the image depending on whether it can fit nicely in the same area
occupied by the grid. That coupled with the fact that HTML doesn't center things very
well means its a little harder yet. The solution we adopt is to calculate the left margin
for the image, and then position the element manually.
]]
local imageBorderWidth = 0
local imgWidth = image.renditions.large.width
local imgHeight = image.renditions.large.height
if model.nonCSS.showImageBorderLarge then
imageBorderWidth = model.nonCSS.imageBorderWidth
end
local gridDefinedWidth = model.nonCSS.numCols * 161 + 1
local imagePlusBorderDefinedWith = 2 * imageBorderWidth + model.photoSizes.large.width + 30
local stageWidth = math.max( gridDefinedWidth, imagePlusBorderDefinedWith )
local previewX = math.floor( math.max( 15, ( stageWidth - imgWidth ) / 2 ) ) - imageBorderWidth
%>

<a href="$gridPageLink">

<div style="margin-left:<%= previewX %>px;">
<%
local pathToANode="parentNode.parentNode"
if model.nonCSS.dropShadows then
pathToANode = "parentNode.parentNode.parentNode.parentNode" %>
<div class="dropShadow">
<div class="inner">
<% end %>
<img src="bin/images/large/<%= image.exportFilename %>.jpg"
class="previewFullImage preview"
id="previewImage"
alt="$image.metadata.title"
<% if mode == 'preview' then %>
width=<%= imgWidth %>
height=<%= imgHeight %>
<% end %>
onclick="var node=<%= pathToANode %>; if( node.click ) { return node.click(); } else { return true; }">
<% if model.nonCSS.dropShadows then %>
<p>

</div>
</div>
<% end %>
</div>
</a>
<div style="clear:both; height:5px"></div>
<% --[[ Caption ]] %>


<a name="fb_share" type="button" href="http://www.facebook.com/sharer.php">Compartir</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

<div id="detailCaption" class="detailText">
$image.metadata.description
</div>
</div>
</div>
<div class="clear">
</div>

<% --[[ Include the page footer]] %>
<%@ include file="foot.html" %>

Etiquetas: facebook, gallery, share
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 10:37.