This repository was archived by the owner on Nov 11, 2025. It is now read-only.
Support POST methods on any api call, allow overriding access tokens, support for app sessions#15
Open
tarqd wants to merge 20 commits intoheroku:masterfrom
Open
Support POST methods on any api call, allow overriding access tokens, support for app sessions#15tarqd wants to merge 20 commits intoheroku:masterfrom
tarqd wants to merge 20 commits intoheroku:masterfrom
Conversation
…ave like other helper functions
Author
|
Any word on this? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Basically I've renamed post() to postFeed to make room for a method that allows you to POST to any graph api.
Example (uploading a picture from a url)
App session support works as follows (sending a notification requires an app access token not a user access token)
I also made it so when there's an API error it wraps up in an error object (
FacebookApiError) which inherits fromError