Comments (2)
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.)
- group-id (should store these in Mongo as part of the group documents. I'll see if there's a way to scrape
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.
I'm going to refactor this issue into more current ones.
from ati-broadcastapp.
Related Issues (20)
- Integrate group scraping into backend HOT 2
- Validate user before serving pages HOT 1
- Ability to view (and later edit) previous posts
- User config screen HOT 1
- E-mail advisors if necessary
- Functionality to retry hourly messages if throttled
- Current testing platform has no credits left HOT 1
- Make sure we are following basic security standards
- Wireframe 1: Login Page HOT 1
- Wireframe 2: Select Action
- Wireframe 3: FB Group Info access
- Wireframe 4: Post to FB HOT 2
- Wireframe 4a: Post to FB HOT 1
- Wireframe 4b: Success message HOT 1
- Wireframe 4c: Error message - throttling
- Wireframe 4d: Error message - post did not make it to all groups
- Wireframe 5: FB Post Deletion
- Wireframe 5a: FB Post Deletion
- Wireframe 5b: FB Post Deletion
- Wireframe 4e: Other error messages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ati-broadcastapp.