-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use AuthorizationType while setting the token into http header #206
base: master
Are you sure you want to change the base?
Conversation
I'm confused by the HTTP header. How should developers decide to choose |
Developers should decide based on which API they want to use in Facebook. There is no clear separation in facebook API documents but mostly bearer token is in use as far as I see.(and currently its the default behaviour). However we faced a case where we needed to use OAuth for Authorization header thats why I created this PR. I shared the OAuth usage in the PR description from the doc. Below the example request to facebook for uploading a file through resumable upload api
|
I tried to follow the document and test this API in Graph API Explorer, but failed. No matter how I sent access_token to facebook, by query string or HTTP header, I always got an error saying I'm trying to find out whether the |
@olimpias Could you answer my question? As I cannot verify the code in this PR, I cannot do more on this PR. |
Hello @huandu , I will get back to you in this week about the PR. |
Hey, First you need to call upload endpoint to get session-id like in the example.
response will have
As far as I see, OAuth only required for this custom endpoint to continue the session uploads. Sure sounds good for me to use special API for |
OK. I managed to upload file to Facebook with API finally. I found that I tried other Facebook Graph API. What's your thought? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No sé cómo hacerlo sé que me responden pero soy nuevo y e tenido problemas en las redes alguien me roba las cueentas NO SÉ CÓMO EMPEZARLO
In some cases, we need to use OAuth rather than Bearer token in http headers. This PR addresses this issue.
Example OAuth case here while uploading a media using upload session.