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

Why do profile pic URLs returned from graph.facebook result in a 404

The backend of my application makes a request to: https://graph.facebook.com/v2.8/me?access_token=<firebase-access-token>&fields=id,name,first_name,birthday,email,picture.type(large){url}&format=json&method=get&pretty=0&suppress_http_code=1 I get a successful (200) response with the JSON data I expect and picture field as such: "picture": { "data": { "url": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=<asid>&height=200&width=200&ext=<ext>&hash=<hash>" } } (where in place of <asid>…

VIEW QUESTION
Back To Top
Search