Technical question about Facebook share (SOLVED) 7 years 1 month ago #1

  • Uyttebroeck Michel
  • Localtime: 17:56
  • Europe/Bucharest
  • Posts: 15
Hi Alex,

Facebook share, I know that this function is not yet implemented but I would like to have a small recommendation from you on the procedure to follow internally for the following function I would like to add to the code:.

1. Only user having a Facebook account can login to our site
2. A user uploads a photo and he ticks a new radio box to share his image to his facebook account
3. No moderation is holding the image as unpublished and awaiting from an administrator in the backend
4. Is there a way to easily determine the final URL of the uploaded image in order to share it on Facebook ?

Many thanks
Michel
The administrator has disabled public write access.

Re: Technical question about Facebook share 7 years 1 month ago #2

  • Alexandru
  • Alexandru's Avatar
  • Senior Developer
  • Bucharest
  • Localtime: 17:56
  • Europe/Bucharest
  • Posts: 4642
Hello!

Regarding the component you'll have to:

2. Edit the "upload" view to add the checkbox (I think a checkbox is more appropriate here) and edit the "upload" function from the "FrontendModelUpload" model to handle the Facebook post when a new photo is uploaded.
3. From the Settings page set "Enable image approval system" to "No".
4. To get the url of the photo, you can check the "latest" view in the "default.php" layout where image links are created and shown.
thePHPfactory Customer Support
The administrator has disabled public write access.

Re: Technical question about Facebook share 7 years 4 weeks ago #3

  • Uyttebroeck Michel
  • Localtime: 17:56
  • Europe/Bucharest
  • Posts: 15
Thanks a lot, I will see that and will come back to you in case of help.

Again many thanks
Michel
The administrator has disabled public write access.

Re: Technical question about Facebook share 7 years 1 week ago #4

  • Uyttebroeck Michel
  • Localtime: 17:56
  • Europe/Bucharest
  • Posts: 15
Hi Alex,

We have added the function.
Seems being working.

Cheers
Michel
The administrator has disabled public write access.