Advertisement:

Author Topic: Shrare bottom Facebook, Instagram and Twitter  (Read 1144 times)

Offline Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 2,042
  • Gender: Male
  • I also speak english :D
    • BomberCode.Oficial on Facebook
    • RockLee-BC on GitHub
    • @Bomber_Code on Twitter
    • Bomber Code ~ La nueva era del conocimiento
Shrare bottom Facebook, Instagram and Twitter
« on: November 13, 2018, 10:29:50 AM »
I'm trying to create a modification that allows you to share SMF topics with Facebook, Instagram and Twitter. I am researching the APIs of the different platforms to see how I use them and started with facebook developers - Share Button Which tells me I should use the following code:

Code: [Select]
<div id="fb-root"></div>
  <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0";
    fjs.parentNode.insertBefore(js, fjs);
  }(document, 'script', 'facebook-jssdk'));</script>

I have doubts about the external libraries, from the point of view to pass the validation of the team, in this case with the libraries (facebook, instagram, twitter) I am asked to use a specific one. Would the validation happen? or would I have to find a way to generate this library in the installation?.


Regards!
¡Regresando como cual Fenix! ~ Bomber Code © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!


Ayudame via PayPal

Offline SychO

  • Lone Wolf
  • Customizer
  • Sr. Member
  • *
  • Posts: 711
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: Shrare bottom Facebook, Instagram and Twitter
« Reply #1 on: November 13, 2018, 04:16:49 PM »
Not sure I understand what you mean, but an external library from Facebook is fine, basically it depends if the external library used looks secure or not.

https://wiki.simplemachines.org/smf/Customization_approval_guidelines#External_Libraries

Offline Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 2,042
  • Gender: Male
  • I also speak english :D
    • BomberCode.Oficial on Facebook
    • RockLee-BC on GitHub
    • @Bomber_Code on Twitter
    • Bomber Code ~ La nueva era del conocimiento
Re: Shrare bottom Facebook, Instagram and Twitter
« Reply #2 on: November 13, 2018, 05:57:17 PM »
@SychO That is my doubt about the type of library used, however, I do not know if it is only safe or not. That is why my question which bookstores will be approved or what criteria to take when using it.


Regards!
¡Regresando como cual Fenix! ~ Bomber Code © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!


Ayudame via PayPal