FacebookPublishStream

0 votes

I cannot seem to test the Publish Stream for unity.

this is the message i get
 

IsolatedStorageException: Could not find a part of the path "/http:/cdn.shephertz.com/repository/files/e11fb5c0af5ec815564637b3988389aae44201e1b117243d4dce28422a6e3f14/89d1541d63b8efa5d1f335f129f766238329286a/bav_jairikiFileName.png".

  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0 

  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 

  at System.IO.File.OpenRead (System.String path) [0x00000] in <filename unknown>:0 

  at System.IO.File.ReadAllBytes (System.String path) [0x00000] in <filename unknown>:0 

  at com.shephertz.app42.paas.sdk.csharp.connection.RESTConnectorWWW.ExecuteMultipart (System.String name, System.String filePath, System.Collections.Generic.Dictionary`2 queryParams, System.Collections.Generic.Dictionary`2 postParams, System.Collections.Generic.Dictionary`2 headerParams, System.String url, System.String accept, App42CallBack callBack) [0x00000] in <filename unknown>:0 

  at com.shephertz.app42.paas.sdk.csharp.social.SocialService.FacebookPublishStream (System.String accessToken, System.String name, System.String filePath, System.String message, App42CallBack callBack) [0x00000] in <filename unknown>:0 

  at NetworkingSocial.publishFacebookStream (System.String accessToken, System.String fileName, System.String filePath, System.String message, AssemblyCSharp.NetworkingSocialCallback callBack)

asked May 19, 2014 in App42 Cloud API-BaaS by bryan.geronimo (10 points)

1 Answer

0 votes

You can not post a file from cdn url, you have to use the local path of your file, As you can see in the Exception message

System.IO.File.OpenRead (System.String path).

So first download the file on your local machine then give the local path of the file.

Or if you want to use cdn url, then use the SocialService method FacebookLinkPost or FacebookLinkPostWithCustomThumbnail.

answered May 19, 2014 by Akshay.Mishra (179 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...