skip to Main Content

Upload Base64 image as post on facebook using GraphAPI

I want to upload base64 image (jpg,png) on facebook using facebook developers graph API's in angular 6 'https://graph.facebook.com/me/photos' this api end I am using with passing formdata. I am referring https://www.devils-heaven.com/facebook-javascript-sdk-photo-upload-from-canvas/ socailpostCall(imageResult) { let xhr: XMLHttpRequest = new XMLHttpRequest(); let…

VIEW QUESTION

How to code in app secrets and tokens for Facebook authentication in Google Scripts without having the credentials in the script? – Facebook api

I have a script that can obtain successfully from the Facebook oAuth API: function getToken() { var appId = "XXXXXX"; var clientSecret = "XXXXXXXXXXXX"; var url = "https://graph.facebook.com/oauth/access_token?client_id="+appId+"&client_secret="+clientSecret+"&grant_type=client_credentials"; var response = UrlFetchApp.fetch(url); var queryResult = response.getContentText(); var token = queryResult.slice(13);…

VIEW QUESTION
Back To Top
Search