Giter Club home page Giter Club logo

Comments (2)

nausicaa-rose avatar nausicaa-rose commented on June 24, 2024

Facebook Graph API

The Facebook Graph API makes it fairly easy to post to multiple groups with a minimal number of HTTP requests. By using batch requests, we can post to up to 50 groups at a time (which should mean 1 request for smaller states). To set up access tokens, we'll have to connect our app to the user's Facebook account, and get a User Access Token. There is a React SDK that should help in setting this up. Once we have an access token, we should be able to post to any group the user is a member of. Further documentation on access tokens can be found here.

Here's a summary of the data fields we'll need to create, update, and delete posts.

To post to group

  • From user login:
    • user-id
    • access token
  • From Facebook API:
    • group-id (should store these in Mongo as part of the group documents. I'll see if there's a way to scrape
      this and add that functionality to our scrapper if I can.)

To update/delete post

  • From user login:
    • user-id
    • access token
  • From Facebook API:
    • post-id

Facebook documents these operations here.

Facebook batch requests are documented here. There is currently a limit of 50 requests per batch. Batch requests are sent as a JSON
array of HTTP requests.

When messages are posted, the API returns the post-id, so we need to make sure
we capture and store those in case we need to update or delete a post.

from ati-broadcastapp.

jonganc avatar jonganc commented on June 24, 2024

I'm going to refactor this issue into more current ones.

from ati-broadcastapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.