uploading mp4 video using curl to facebook
I have a simple bot in my facebook website, I want to upload mp4 video so that I can use it to my bot according to this doc upload via url here is what I have done so far.
curl -X POST -H "Content-Type: application/json" -d '{
{
"message":{
"attachment":{
"type":"video",
"payload":{
"is_reusable": true,
"url":"https://cdn-b-east.streamable.com/video/mp4/ll7ht.mp4?token=3Oue4umXi5OZYxVcpgh61w&expires=1546136854"
}
}
}
}
}' "https://graph.facebook.com/v2.6/me/messenger_profile?access_token=MY TOKEN GOES HERE"
Unfortunatelly when I run the above code in my bash terminal I get the following error :
{
"error": {
"message": "(#100) Requires one of the params: get_started,persistent_menu,target_audience,whitelisted_domains,greeting,account_linking_url,payment_settings,home_url",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "FK6F4slf7IZ"
}
}
What is wrong with my code? any help will be appreciated thanks
facebook curl facebook-graph-api facebook-messenger-bot facebook-chatbot
add a comment |
I have a simple bot in my facebook website, I want to upload mp4 video so that I can use it to my bot according to this doc upload via url here is what I have done so far.
curl -X POST -H "Content-Type: application/json" -d '{
{
"message":{
"attachment":{
"type":"video",
"payload":{
"is_reusable": true,
"url":"https://cdn-b-east.streamable.com/video/mp4/ll7ht.mp4?token=3Oue4umXi5OZYxVcpgh61w&expires=1546136854"
}
}
}
}
}' "https://graph.facebook.com/v2.6/me/messenger_profile?access_token=MY TOKEN GOES HERE"
Unfortunatelly when I run the above code in my bash terminal I get the following error :
{
"error": {
"message": "(#100) Requires one of the params: get_started,persistent_menu,target_audience,whitelisted_domains,greeting,account_linking_url,payment_settings,home_url",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "FK6F4slf7IZ"
}
}
What is wrong with my code? any help will be appreciated thanks
facebook curl facebook-graph-api facebook-messenger-bot facebook-chatbot
It looks like you're using the wrong request url. Usehttps://graph.facebook.com/v2.6/me/message_attachments?access_token=<PAGE_ACCESS_TOKEN>
– Jon Church
Jan 1 at 5:41
add a comment |
I have a simple bot in my facebook website, I want to upload mp4 video so that I can use it to my bot according to this doc upload via url here is what I have done so far.
curl -X POST -H "Content-Type: application/json" -d '{
{
"message":{
"attachment":{
"type":"video",
"payload":{
"is_reusable": true,
"url":"https://cdn-b-east.streamable.com/video/mp4/ll7ht.mp4?token=3Oue4umXi5OZYxVcpgh61w&expires=1546136854"
}
}
}
}
}' "https://graph.facebook.com/v2.6/me/messenger_profile?access_token=MY TOKEN GOES HERE"
Unfortunatelly when I run the above code in my bash terminal I get the following error :
{
"error": {
"message": "(#100) Requires one of the params: get_started,persistent_menu,target_audience,whitelisted_domains,greeting,account_linking_url,payment_settings,home_url",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "FK6F4slf7IZ"
}
}
What is wrong with my code? any help will be appreciated thanks
facebook curl facebook-graph-api facebook-messenger-bot facebook-chatbot
I have a simple bot in my facebook website, I want to upload mp4 video so that I can use it to my bot according to this doc upload via url here is what I have done so far.
curl -X POST -H "Content-Type: application/json" -d '{
{
"message":{
"attachment":{
"type":"video",
"payload":{
"is_reusable": true,
"url":"https://cdn-b-east.streamable.com/video/mp4/ll7ht.mp4?token=3Oue4umXi5OZYxVcpgh61w&expires=1546136854"
}
}
}
}
}' "https://graph.facebook.com/v2.6/me/messenger_profile?access_token=MY TOKEN GOES HERE"
Unfortunatelly when I run the above code in my bash terminal I get the following error :
{
"error": {
"message": "(#100) Requires one of the params: get_started,persistent_menu,target_audience,whitelisted_domains,greeting,account_linking_url,payment_settings,home_url",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "FK6F4slf7IZ"
}
}
What is wrong with my code? any help will be appreciated thanks
facebook curl facebook-graph-api facebook-messenger-bot facebook-chatbot
facebook curl facebook-graph-api facebook-messenger-bot facebook-chatbot
edited Dec 30 '18 at 15:58
user9964622
asked Dec 30 '18 at 14:08
user9964622user9964622
1,13311036
1,13311036
It looks like you're using the wrong request url. Usehttps://graph.facebook.com/v2.6/me/message_attachments?access_token=<PAGE_ACCESS_TOKEN>
– Jon Church
Jan 1 at 5:41
add a comment |
It looks like you're using the wrong request url. Usehttps://graph.facebook.com/v2.6/me/message_attachments?access_token=<PAGE_ACCESS_TOKEN>
– Jon Church
Jan 1 at 5:41
It looks like you're using the wrong request url. Use
https://graph.facebook.com/v2.6/me/message_attachments?access_token=<PAGE_ACCESS_TOKEN>– Jon Church
Jan 1 at 5:41
It looks like you're using the wrong request url. Use
https://graph.facebook.com/v2.6/me/message_attachments?access_token=<PAGE_ACCESS_TOKEN>– Jon Church
Jan 1 at 5:41
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53978285%2fuploading-mp4-video-using-curl-to-facebook%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53978285%2fuploading-mp4-video-using-curl-to-facebook%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
It looks like you're using the wrong request url. Use
https://graph.facebook.com/v2.6/me/message_attachments?access_token=<PAGE_ACCESS_TOKEN>– Jon Church
Jan 1 at 5:41