有人可以帮助您使用schedule_custom_profile_image中使用的图像文件格式,在Facebook上传图像创建Live视频API。 click here to refer the API
在API中提到将配置文件图像作为图像格式传递。 我尝试过使用base64格式,blob格式,本地图像路径,二进制格式。
以上都不适合我。
我也尝试过使用curl:
curl -X POST \
-F "planned_start_time=1486645055" \
-F "access_token={access_token} " \
-F "schedule_custom_profile_image=@//Users/blin/picture.png" \
https://graph.facebook.com/v2.8/me/live_videos
但是这里没有提供确切的格式。这似乎是图像路径。
我收到错误:
{"error":{"message":"(#100) Invalid image format. It should be an image file data.","type":"OAuthException","code":100,"fbtrace_id":"AOng3JJfJsH"}}