Skip to main content

Mezzanine Facebook Feed

Connect Mezzanine sites to Facebook feeds

Installation

  1. Install via pip: pip install mezzanine-facebook-feed.
  2. Add fbfeed to your INSTALLED_APPS.
  3. Run migrations.

Usage

Add Facebook App credentials

Add your Facebook App ID and Secret to Mezzanine's setting page. Configure your App with a redirect URI of <your domain>/admin/fbfeed/access/redirect/.

Create an Access instance

To access Facebook you need to create access tokens so Mezzanine can run queries on your behalf. To create access tokens visit your admin site and click FB Feed > Access.

  1. Create an Access instance and give it a name (this is arbitrary and for your use only).
  2. Set Facebook ID to the numeric ID of the user or page you want to query. If you want to query your own data, enter "me".
  3. Save the Access instance and open it again in the admin.
  4. Click the "Get Access Token" button in the upper-right corner.
  5. You will be redirected to Facebook. Complete the login process.
  6. If everything goes well, you'll see the access token in the Access admin page.
  7. Otherwise an error message will be shown on the top of the admin site.

Display your data in templates

{% load fbfeed_tags %}
{% fbfeed_photos as photos %}
{% for photo in photos %}
  <a href="{{ photo.link }}">
    <img src="{{ photo.images.0.source }}" alt="{{ photo.alt_text }}">
  </a>
{% endfor %}

Contributing

Review contribution guidelines at CONTRIBUTING.md.

Release files for mezzanine-facebook-feed 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mezzanine-facebook-feed 0.3.1
File Size Uploaded
mezzanine-facebook-feed-0.3.1.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mezzanine-facebook-feed 0.3.1
File Interpreter ABI Platform
mezzanine_facebook_feed-0.3.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 15.2 kB

Release files / mezzanine-facebook-feed-0.3.1.tar.gz

Download URL mezzanine-facebook-feed-0.3.1.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
642b338be2471d5a6ed8d2d0f9320d419c6b68f111221787cc8704c4bed7d1b0
BLAKE2b-256 checksum
How to use checksums
34a8888e11dedef8b0c037134b7c33f331027dd507bd7f3db82dfb52ff1a2a79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/2.7.14

Release files / mezzanine_facebook_feed-0.3.1-py2.py3-none-any.whl

Download URL mezzanine_facebook_feed-0.3.1-py2.py3-none-any.whl
Size 8.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5d917db303fde86eeb254def05aadcb4a6cef1c074d2b86b0447e3579de94ba9
BLAKE2b-256 checksum
How to use checksums
1e17731571b8146ab12d2d873e43aaedd6e575a39a409ac345df5147f331f512
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/2.7.14

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page