Leahpar
Leahpar

Reputation: 693

Facebook Graph API v10 image upload to Pages feed

I'm trying to upload a image to facebook via graph api v10. i have followed the docs: https://developers.facebook.com/docs/graph-api/resumable-upload-api/

I'm getting the File-Handle as result, but i dont know how to append this File-handle to my Page post. Does anyone know what i can do with this File-Handle to attach it to a Post I'm automatically posting after the file upload was successful?

Thanks!

Upvotes: 2

Views: 446

Answers (1)

Timor Kodal
Timor Kodal

Reputation: 364

I´ve got the same problem. In the Facebook Graph API Documentation it says:

When we're done with uploading the data, you'll get a file handle:

{"h":"2:c2FtcGxlLm1wNA==:image/jpeg:GKAj0gAUCZmJ1voFADip2iIAAAAAbugbAAAA:e:1472075513:ARZ_3ybzrQqEaluMUdI"}

This value can be used in place of an uploaded file for subsequent graph calls.

However, no examples or further explanations are provided on how to use the received file handler.

Upvotes: 3

Related Questions