I'm using Facebook graph API to post an Image to a page.
UploadImage() {
let params = {
url: "https://www.facebook.com/images/fb_icon_325x325.png",
published: true,
access_token: this.accessToken
};
this.fb.api('/543337362691456/photos', 'post', params).then().catch(this.handleError); }
This code works perfectly. But I want to select a file from computer and upload that image to facebook. In order to do that, How I'm suppose to set the url of a local file to
url:" "
if I just select the path of a file it gives an error
See Question&Answers more detail:os