Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
django-like-button makes it easy to use a facebook like button in your django application. You just need to do the following.
Documentation can now be found in ReadTheDocs here: https://readthedocs.org/projects/django-like-button/
Install django-like-button using easy_setup or pip::
pip install django-like-button
add like_button to your INSTALLED_APPS in your django settings file::
INSTALLED_APPS = ( # all # other # apps 'like_button', )
Add "FACEBOOK_APP_ID" setting to your django settings file with your facebook application Id.
in settings.py::
FACEBOOK_APP_ID = "your appID"
FACEBOOK_SHOW_SEND = "true" # or "false, default is "true"
FACEBOOK_LIKE_WIDTH = "450" # "numeric value for width", default is 450
FACEBOOK_SHOW_FACES = "true" # or "false, default is "true"
FACEBOOK_FONT = "font" # default is "arial"
Add the template tag code into your base template before the body tag.
In the template, in which you want to add button load tags:
{% load like_button %}
Where you need the like button::
{% like_button_tag %}
At the bottom of the page before the tag put this (you only need to do this once)::
{% like_button_js_tag %}
Add the url into your urls file. This tries to address the issue identified with facebooks like button here: http://stackoverflow.com/questions/2955012/facebook-javascript-sdk-fb-xd-fragment
in urls.py::
url(r'', include('like_button.urls')),
FAQs
Django App for adding a Facebook like button
We found that django-like-button demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.