News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Shrare bottom Facebook, Instagram and Twitter

Started by -Rock Lee-, November 13, 2018, 10:29:50 AM

Previous topic - Next topic

-Rock Lee-

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:

<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
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

SychO

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
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

-Rock Lee-

@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
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Advertisement: