All Projects → boudra → Zuck

boudra / Zuck

Licence: mit
Facebook Graph API wrapper for Elixir

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to Zuck

Facebook-Auto-Pilot
Automate common Facebook activities such as posting to groups and pages walls. Effortlessly post to multiple groups or pages.
Stars: ✭ 126 (+950%)
Mutual labels:  facebook, facebook-api
facebook-go-sdk
A very simple and easy-to-use Facebook SDK for Golang.
Stars: ✭ 18 (+50%)
Mutual labels:  facebook, facebook-api
facebook-login-for-robots
Facebook Login for 🤖 robots
Stars: ✭ 41 (+241.67%)
Mutual labels:  facebook, facebook-api
facebook-bot-autoresponder
Facebook bot that automatically responds to the comments of a certain post
Stars: ✭ 90 (+650%)
Mutual labels:  facebook, facebook-api
Multistreamer
[discontinued] A webapp for publishing video to multiple streaming services at once.
Stars: ✭ 281 (+2241.67%)
Mutual labels:  facebook-api, facebook
facebook-messenger
Go (GoLang) package for Facebook Messenger API and Chat bot
Stars: ✭ 62 (+416.67%)
Mutual labels:  facebook, facebook-api
Restfb
RestFB is a simple and flexible Facebook Graph API client written in Java.
Stars: ✭ 681 (+5575%)
Mutual labels:  facebook-api, facebook
J2team Community
Join our group to see more
Stars: ✭ 172 (+1333.33%)
Mutual labels:  facebook-api, facebook
facebook-py-sdk
Facebook Python SDK
Stars: ✭ 15 (+25%)
Mutual labels:  facebook, facebook-api
messenger
💬 A PHP library for Facebook Messenger
Stars: ✭ 53 (+341.67%)
Mutual labels:  facebook, facebook-api
Facebook-Album-Browser
jQuery plugin for browsing public albums of a Facebook account
Stars: ✭ 76 (+533.33%)
Mutual labels:  facebook, facebook-api
React Facebook
Facebook components like a Login button, Like, Share, Chat, Comments, Page or Embedded Post
Stars: ✭ 661 (+5408.33%)
Mutual labels:  facebook-api, facebook
Facebooktoolkit
a tool to get Facebook data, and some Facebook bots, and extra tools found on Facebook Toolkit ++.
Stars: ✭ 227 (+1791.67%)
Mutual labels:  facebook-api, facebook
facebook-node-sdk
Modeled from the (Facebook Javascript SDK), now with the facebook-node-sdk you can now easily write the same code and share between your server (nodejs) and the client (Facebook Javascript SDK).
Stars: ✭ 519 (+4225%)
Mutual labels:  facebook, facebook-api
Facebookimagepicker
FacebookImagePicker is Facebook album photo picker written in Swift.
Stars: ✭ 220 (+1733.33%)
Mutual labels:  facebook-api, facebook
facebook-ruby-ads-sdk
The Facebook Marketing API in Ruby.
Stars: ✭ 59 (+391.67%)
Mutual labels:  facebook, facebook-api
Facebook
📨 Facebook Notifications Channel for Laravel
Stars: ✭ 120 (+900%)
Mutual labels:  facebook-api, facebook
Facebook Js Ads Sdk
[DEPRECATED] OFFICIAL FACEBOOK SDK: https://github.com/facebook/facebook-nodejs-ads-sdk
Stars: ✭ 140 (+1066.67%)
Mutual labels:  facebook-api, facebook
lambda-facebook-oauth
An AWS Lambda function to facilitate Oauth2 social login with Facebook
Stars: ✭ 16 (+33.33%)
Mutual labels:  facebook, facebook-api
Facebook Cli
💻 Facebook command line tool
Stars: ✭ 350 (+2816.67%)
Mutual labels:  facebook-api, facebook

Zuck

Installation

The package can be installed by adding zuck to your list of dependencies in mix.exs:

def deps do
  [{:zuck, git: "https://github.com/boudra/zuck.git"}}]
end

Configuration

config :zuck, 
  app_id: "",
  app_secret: "",
  log: true,
  debug: true,
  version: "v2.9",
  endpoint: "https://graph.facebook.com/",
  http: [] # these will be passed to hackney

Roadmap

  • [ ] Batch requests
  • [ ] Real time updates
  • [ ] Facebook messenger

Usage

Basic example

{:ok, user} = Zuck.get("/me", %{
  access_token: "TOKEN",
  fields: "name,email"
})

Pagination trough streams

You can use the stream helpers to handle multipage data, very useful when getting ad insights or large lists of data, the stream will handle the cursor and make the necesary requests for you:

Zuck.get_stream("/act_ACCOUNT_ID/insights", %{
  access_token: "TOKEN",
  level: "ad",
  date_preset: "yesterday",
  fields: "ad_name"
})
|> Enum.map(fn ad -> ad.ad_name end)

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/zuck.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].