Topic-icon facebook send button

Active Subscriptions:

None
12 years 9 months ago #35815 by andbal2
facebook send button was created by andbal2
hi, as you can see here templatesocialapp2.socialapp-store.com/home/product/view/2/2 clicking facebook send button i have the qr code image in the box and not the product image. i use joomshopping as e-commerce. is there a way to change image source and send product image? tx
The topic has been locked.
Support Specialist
12 years 9 months ago #35864 by alzander
Replied by alzander on topic facebook send button
Andrea,
The image used for the send button is set using Open Graph tags on the page. We don't currently have an Open Graph plugin for JoomShopping to automatically select the image, but you can add it to your pages with the following tag:
{SCOpenGraph image=http://yoursite.com/link-to-image.jpg}
That tag can also have PHP in there so that you can include it in a template page (like a JoomShopping product layout) and have the image automatically set per page.

The only other thing to mention is that you must have the October Breaking Changes setting enabled in your Facebook Application. Otherwise, the Send button will not use the Open Graph tags, it will basically just randomly select an image from your page. Autotune should automatically set that migration value for you when you run it.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #36356 by andbal2
Replied by andbal2 on topic facebook send button
hi, i think this is the code about image source
<img src="<?php print $product->_label_image?>" alt="<?php print htmlspecialchars($product->_label_name)?>" />

how and where add your tag? best regards
The topic has been locked.
Support Specialist
12 years 9 months ago #36371 by alzander
Replied by alzander on topic facebook send button
Directly after that line you should be able to add the {SCOpenGraph ...} tag, like:
<img src="<?php print $product->_label_image?>" alt="<?php print htmlspecialchars($product->_label_name)?>" />
{SCOpenGraph image=<?php print $product->_label_image?>}
The only thing to check is that the og:image tag that is inserted onto the page includes the full domain. If not, update the tag to:
{SCOpenGraph image=http://yourdomain.com/<?php print $product->_label_image?>}
I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #36377 by andbal2
Replied by andbal2 on topic facebook send button
sorry not works, with or without domain
The topic has been locked.
Support Specialist
12 years 9 months ago #36399 by alzander
Replied by alzander on topic facebook send button
What doesn't work? Have you looked at the HTML and checked the og:image tag that's being shown? Is that correct?

Also, please use the Facebook URL Debug Tool to test the page and see what Facebook thinks has been set for the page. Let me know what you find.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #36408 by andbal2
Replied by andbal2 on topic facebook send button
hi, i did the debug of this link 123.socialapp-store.com/home/product/view/3/8 and as you can reda there isn't og:image tag. how can i add it? can i add a tag also for text? i mean using a another tag can i sugget a specific text to facebook? tx
The topic has been locked.
Support Specialist
12 years 9 months ago #36415 by alzander
Replied by alzander on topic facebook send button
Did you add the {SCOpenGraph image=...} tag as noted above? Is there any way to see the real page and not redirect to the Facebook App? That will help to diagnose things.

As for other tags, you can add any Open Graph tag you want, like:
{SCOpenGraph description=My description for this page}
{SCOpenGraph title=Title for the Page}

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #36433 by andbal2
Replied by andbal2 on topic facebook send button
yes i added {SCOpenGraph image=<?php print $product->_label_image?>} and disabled redirect to facebook app so now you can see real web site; with facebook link debug i see also problem is connected also to image size, pic needs to be more than 200 px, right?

please could you help me? tx
The topic has been locked.
Support Specialist
12 years 9 months ago #36442 by alzander
Replied by alzander on topic facebook send button
Andrea,
Can you update the tag to the following, which will help us narrow down what is actually happening:
TEST<?php print $product->_label_image?>TEST{SCOpenGraph image=<?php print $product->_label_image?>}
That should output TEST<the image URL>TEST on the page, and will help us to see what the $product->_label_image variable actually is set to.

Let us know when that's setup, or feel free to just post the result back here and we can understand from there.

Thanks,
Alex
The topic has been locked.