Facebook Comments / Showing Picture on Facebook

Phoca Gallery - image gallery extension
briancruc
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 23 Sep 2010, 16:32

Facebook Comments / Showing Picture on Facebook

Post by briancruc »

Wanted to say the facebook commenting idea is pretty awesome and could be a really big plus...however for it to be usable (at least for me), I really think it needs some tweaking. Mainly, the actual image needs to show up in Facebook when someone posts a comment, not just a link to the image page...more clearly:

1. When a user posts a comment on a picture, it really needs to be linking to the actual image file that they are commenting on, not just the page on the site. This way, the image would be shown in Facebook which would make it much more social. Right now, it only shows a link to the page on the site when someone posts the comment to their profile, which isn't that great when seen in Facebook. Also, I restrict access to my galleries, which means other people won't even be able to follow the link to see what is going on.

Basically, all facebook links should link to the actual image file. When someone clicks "like", they should be liking the image file and not the page (this way the image would show up in facebook from a "like" as well).

Is it possible to allow this?

I'm trying to look through the phoca gallery code to figure it out but I can't find the files that relate to commenting.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Facebook Comments / Showing Picture on Facebook

Post by Jan »

Hi, I am not facebook developer so maybe this should be a question on facebook developers. No idea if facebook can display an image which is stored on other server. The same with the link, it is build with facebook framework.

So I think this needs to be done (if this can be done) with help of facebook api (but really no idea if there is such option)

Jan
If you find Phoca extensions useful, please support the project
briancruc
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 23 Sep 2010, 16:32

Re: Facebook Comments / Showing Picture on Facebook

Post by briancruc »

I think it just depends on the URL that is sent to facebook...right now it is just sending the URL of the page. Somehow that just needs to be replaced with the URL of the image.

Not sure, though. I may try figuring it out myself. I may start with trying to add a "like" button for each image. I'd want it to be where the delete / download / publish etc. icons are in the category view. Where in the code would I look to add another button in that area?

The button should be simple enough to put on, I think...just need to use the facebook like code and make the link of the object you're "liking" the URL of the image file...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Facebook Comments / Showing Picture on Facebook

Post by Jan »

Hi, if you will somehow change the link to link to image, then users get similar link but to image only, so in some window the image will be displayed without any dependecy to the site? :idea:
If you find Phoca extensions useful, please support the project
Zecke
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 07 Oct 2010, 13:54

Re: Facebook Comments / Showing Picture on Facebook

Post by Zecke »

Beeing able to show the picture on facebook would be great! If there is a solution, please tell! Thank you!
Also a comment-button at the lightbox would be great!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Facebook Comments / Showing Picture on Facebook

Post by Jan »

Hi, I don't know such feauture on facebook on framework, if there is some please let me know so I will implement it. :idea:
If you find Phoca extensions useful, please support the project
domfitty
Phoca Member
Phoca Member
Posts: 10
Joined: 21 Sep 2010, 09:44

Re: Facebook Comments / Showing Picture on Facebook

Post by domfitty »

I think it's not possible :?
BeTheDance
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 05 Jun 2010, 02:52

Re: Facebook Comments / Showing Picture on Facebook

Post by BeTheDance »

I thought my implementation didn't work. I fully expected to see the image in the comment, not a page url. Hmmm. Other facebook commenting solutions take the first image on the page and use that as an image. I hope this can be made to work.
domfitty
Phoca Member
Phoca Member
Posts: 10
Joined: 21 Sep 2010, 09:44

Re: Facebook Comments / Showing Picture on Facebook

Post by domfitty »

BeTheDance wrote:I thought my implementation didn't work. I fully expected to see the image in the comment, not a page url. Hmmm. Other facebook commenting solutions take the first image on the page and use that as an image. I hope this can be made to work.
That one is not a commenting solutions but the Facebook Share Button. You can implement easly with many joomla modules or with few code lines.
The Chief
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 09 Nov 2010, 20:31

Re: Facebook Comments / Showing Picture on Facebook

Post by The Chief »

Jan - Tell Me where you got the API hidden in the PHOCA Gallery for the Facebook and I will do a little investigating to see if we can pull the image too!

UPDATE - Found the Code in defualt.php - I submitted a forum question on the Facebook developers page for assistance! :o
Post Reply