Post with Images and Videos

Hi,

Please let me know how to share images and videos using social sharing API's. I tried to post on Facebook but did not see any option to attach the images or video's. We're using below code snippets to publish content. Also tried with 'SharingPublishMessage' to share published content. And post is made successfully but images and video are not visible in posted message.

PostMessage strMessage = new PostMessage()
{
Parts = new MessageParts()
{
Text = new MessageText() { Body = _strDescription },
Video = new MessageVideo() { Url = new Uri("") },
Picture = new MessagePicture() { Url = new Uri("https://www.google.co.in/logos/doodles/2016/mario-mirandas-90th-birthday-5168902390677504-hp.jpg") },
Link = new MessageLink()
{
Url = new System.Uri("https://www.google.co.in/logos/doodles/2016/mario-mirandas-90th-birthday-5168902390677504-hp.jpg"),
Name = _strPostTitle,
Description = _strDescription,
Caption = "Demand Engine"
}
},
Providers = { strProvider }
};

Response response = OneAllAPI.Default.UserPublishContent(userToken, strMessage);

See How it looks on Facebook - http://screencast.com/t/Xag7tQ4X

Thanks

Answers

  • Hi,
    The REST API takes a string for the video part of the message.
    What is the library you are using, and does it send a text value?

    Regards.

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.