skip to Main Content

Spring Boot and OAuth2 CORS – Facebook api

when we access the apis from a node server using axios client it always run in to the following error: XMLHttpRequest cannot load http://localhost:8089/public/api. Redirect from 'http://localhost:8089/public/api/' to 'http://localhost:8089/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present…

VIEW QUESTION

Upload/Send file to Facebook via Send Api Reference – Facebook api

Here is the curl From Facebook Docs to Upload a file to their servers for sending to the specified user: curl -F recipient='{"id":"USER_ID"}' -F message='{"attachment":{"type":"file", "payload":{}}}' -F filedata=@/tmp/receipt.pdf "https://graph.facebook.com/v2.6/me/messages?access_token=PAGE_ACCESS_TOKEN" curl -F 'recipient={"id":"USER_ID"}' -F 'message={"attachment":{"type":"audio", "payload":{}}}' -F 'filedata=@/tmp/clip.mp3;type=audio/mp3' "https://graph.facebook.com/v2.6/me/messages?access_token=PAGE_ACCESS_TOKEN" I am…

VIEW QUESTION
Back To Top
Search