Topic-icon Insert FB like under each Jomsocial Photo ?!

Active Subscriptions:

None
13 years 5 months ago #28927 by gormey
Hello,
Would like to know, if it is possible to integrate FB LIKE button under each jomsocial photo, so when user like a photo, this like, appears on the user facebook page with a thumbnail of that photo?!

I create something but this links only one Photo but i have to go to the next Photo an refresh the Page that the Button checks that the URL has change.
so i have to find a solution to Like the page an no the image but on every new Photo one number change in the end of the URL.
Exemple

www.myshooting.lu/pix/tk/photo?albumid=103#photoid=4760
www.myshooting.lu/pix/tk/photo?albumid=103#photoid=4761

Here is my Like Script

{JFBCLike data-href="myshooting.lu/gallery/?user=id; ?>&album=id; ?> layout=standard show_faces=true show_send_button=true width=300 action=like font=verdana colorscheme=light}

is there some ho can help me?
The topic has been locked.
Support Specialist
13 years 5 months ago #28938 by alzander
Unfortunately, you can't. There is a problem with the way JomSocial creates URLs for photos. For both of the URLs above, the URL is actually the exact same. The anchor expression (#1234 at the end of the URL) is something that is never sent from the browser to the server and not something we'd be able to trigger off of to create a specific URL for just that image. Facebook also won't recognize the #ID at the end, as you'll see in the following link:
developers.facebook.com/tools/debug/og/o...%23photoid%3D4283883
The "Canonical" URL it uses will always be stripped off since it's not part of the real URL.

You'd need to talk to JomSocial to see if there's any method to get a full qualified URL that can be reached without using any Javascript to see the image you want to Like. If that URL exists, then we could create a Like button for each image. Until then though, we'd only be able to create a Like button that works for the album home page.

Hope that makes sense,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 5 months ago #29241 by gormey
Hello we got it working after 2 hours of work!

Try it!
www.myshooting.lu/pix/photo?groupid=20&albumid=126#photoid=6301
The topic has been locked.
Support Specialist
13 years 5 months ago #29256 by alzander
Glad to hear you got it going. Just so you know, when I like an image, the URL that is used in Facebook looks like the below:
www.myshooting.lu/pix/photo?albumid=126&photoid=6304

That doesn't work for me as I'm sent to a page that says "Sorry, you are not allowed to view this page.".

Seems close though. Definitely let us know if you fully get it.. or I'm just testing wrong.

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

None
13 years 5 months ago #29257 by gormey
Hey

Just go simply on the side: www.myshooting.lu/pix select any album and try it. You gonna see the image on your facebook Wall :-)

Best Regards :-)
The topic has been locked.
Support Specialist
13 years 5 months ago #29264 by alzander
Just tested again and it worked. Not sure what was up before. Clicking on the image just brings me to the album home page, but the fact that the image shows in FB is awesome enough. Well done!

I'm assuming there were no changes in JFBConnect, correct? If there were, we'd consider implementing them, but I think it was all in JomSocial.

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

None
13 years 5 months ago #29270 by gormey
Hey, i think my friend has done some modification in Jfconnect. And he created some extra thinks i can tell you what. But he say to del the documentation and the source code for 500€

Best regards
The topic has been locked.
Support Specialist
13 years 5 months ago #29272 by alzander
We don't buy code-changes for our extension. If you'd like to contribute them back, great; otherwise, feel free to use the changes you make however you'd like.

Thanks, and best of luck,
Alex
The topic has been locked.