SilverlightShow: SkyDrive usage through Live SDK on Windows Phone Comments http://www.silverlightshow.net/ Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samples SilverlightShow.net http://www.rssboard.org/rss-specification Argotic Syndication Framework 2008.0.2.0, http://www.codeplex.com/Argotic en-US estoychev@completit.com (Emil Stoychev) Re: SkyDrive usage through Live SDK on Windows Phone <p>Hi samidip!</p> <p>Your app is very nice and great, I use it too. It works well. But I have a little problem. I made a picture upload function in it and I dont know why but when I upload a picture (taken by the phone), after it the program cannot show me the skydrive files. If I go to my skydrive account on my computer and I remove that picture from files it works fine again, but when I make a pic and upload it, the app can't show me the files. I dont have problem with other pictures, only with taken pictures. Do you have any idea?</p> <p>Thank you! :)</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment9106 mstr9952 http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Mon, 25 Mar 2013 01:40:11 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>Hi goofys_friend,</p> <p>You can download the print version of this article from <a href="http://www.silverlightshow.net/Storage/Sources/SkyDrive%20usage%20through%20Live%20SDK%20on%20WP%20-%20Samidip%20Basu.zip">here</a>.</p> <p>Hope you'll enjoy it! </p> <p>Greetings,</p> <p>Ralitsa from SilverlightShow Team</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment8935 SilverlightShow http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Mon, 04 Feb 2013 18:36:55 GMT Re: SkyDrive usage through Live SDK on Windows Phone I want to buy the ebook and donwload the source code but the link doesn't work. http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment8904 goofys_friend http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Sun, 27 Jan 2013 18:03:02 GMT Re: SkyDrive usage through Live SDK on Windows Phone How to download source code, the link doesn't work... http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment8805 laakkti http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Sat, 05 Jan 2013 09:04:42 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>@rtshmittl,</p> <p>If you are using the Live SDK purely for Windows Phone, you don't technically need the RedirectURI. Try without it. Details on configuring the redirect domain can be found @ http://msdn.microsoft.com/en-us/library/hh826541.aspx.</p> <p>Thanks!</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment8671 samidip http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Sun, 02 Dec 2012 16:28:05 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>Hey samidip,</p> <p>I don't have a personal website or anything for redirect URI, can you please tell me from where would i get it and what exactly it is?</p> <p>Thanks</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment8670 rtshmittl http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Sun, 02 Dec 2012 14:32:45 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>jano85,</p> <p>When you hit the credentials page for the first time, was the "Remember Me" checkbox checked? This may have to do with cookies.</p> <p>Thanks!</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment8428 samidip http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Tue, 04 Sep 2012 15:19:19 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>Hi,</p> <p>If user clicsk sign out and after that sign in again. The user is not taken to screen to input username and password. Just "Allow" page is shown.</p> <p>Anyone know how to logout the user?</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment8427 jano85 http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Tue, 04 Sep 2012 10:56:22 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>tarun123,</p> <p>Please use http://manage.dev.live.com to register your application for a client id.</p> <p>Thanks!</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment8411 samidip http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Tue, 28 Aug 2012 17:20:06 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>hello ,</p> <p>          i am not unable to get my client id for the above code.. how to configure the client id and what client id i have to use </p> <p>..</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment8409 tarun123 http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Mon, 27 Aug 2012 12:59:20 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>tarun123,</p> <p>Did you set up your application with Live Services by registering a Redirect URI @ http://manage.dev.live.com? </p> <p>Thanks!</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment8408 samidip http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Sun, 26 Aug 2012 06:59:57 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>hi,</p> <p> i tried the same code but i am getting  the exception redirect url</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment8407 tarun123 http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Fri, 24 Aug 2012 16:45:30 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>Jitendra,</p> <p>Thanks for the comments!</p> <p>Now, did you download the source code & see the sample solution? There are several things that need to be wired up (scope, redirectUri, sessionchanged event handler etc.) before the Sign-In button will function. Please let me know if you have done all of that & still seeing issues.</p> <p>Thanks!</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment8110 samidip http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Fri, 01 Jun 2012 06:40:52 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>Ok. I think I got it. I have defined  "public LiveConnectSession LiveSession { get; set; }" in App.xaml.cs.</p> <p>Well now on clicking "SignIn" button, it shows me a BLANK screen on Emulator.</p> <p>Please let me know what could be the issue.</p> <p>Thanks a lot.</p> <p>Jitendra </p> <p> </p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment8109 JitendraVerma http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Thu, 31 May 2012 21:00:55 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>Hi Samidip,</p> <p>Very nice article, however I am facing one issue related with "App.Current.LiveSession" property. In App.Current it is showing only - ApplicationLifetimeObjects, Host, Resources, RootVisual properties only, not the "Live Session".</p> <p>Please let me know what could be the issue.</p> <p>Thanks a lot.</p> <p>Jitendra </p> <p> </p> <p> </p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment8108 JitendraVerma http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Thu, 31 May 2012 18:16:15 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>Great work...</p> <p> Can u share the same example to share .pdf file. </p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment7909 AnkitJain http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Tue, 17 Apr 2012 09:58:36 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>Fixed it by using .doc instead of .docx.</p> <p> </p> <p>Thanks a lot! Really helpful guide! </p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment7826 randomdude http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Tue, 10 Apr 2012 17:17:48 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>Hi,</p> <p> With regards to my previous comment, I thought I would make myself more clear. I am using the Windows Phone SDK. I inserted my Client ID and Redirect URI. I then deployed the application to my phone. I successfully created a document using the application.</p> <p>Now, I am unable to open the document from my browser using the Word Web App. I am also unable to open the document after downloading and opening it with normal Microsoft Word. </p> <p> </p> <p>I am getting the error mentioned earlier. Could you please tell me if you have any idea on what I'm doing wrong here? Thanks!</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment7825 randomdude http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Tue, 10 Apr 2012 17:12:34 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>Steve,</p> <p>Thanks for the comment & good question. I believe what's happening is that the Sign-In control caches the OAuth Access Token from the Live Service API. This, however, is not meant to last forever unless you ask for a Refresh token and is invalidated if user explicitly logs out.</p> <p>The section on User Permission @ <a href="http://msdn.microsoft.com/en-us/library/hh243641.aspx" re_target="null" target="_blank">http://msdn.microsoft.com/en-us/library/hh243641.aspx</a> might help.</p> <p>Thanks!</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment7746 samidip http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Thu, 29 Mar 2012 19:53:55 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>Thanks for the demo app.</p> <p>I've been playing with this and have a quick question regarding the "one-time OAuth access" prompt.  It appears every time I log out and back in, I get this prompt.  Is this expected behavior.  If its a one-time query, I would expect it to prompt for approval once and then never again unless the user revokes permission by editing their live.com profile.</p> <p>I realize it doesn't prompt again if the user checks "keep me signed in", then quits and restarts the app.  But I'm curious about the expected behavior when the user logs out and then later logs back in.  Any thoughts?</p> <p>Thanks,</p> <p>Steve</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment7744 slr http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Thu, 29 Mar 2012 12:58:58 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>randomdude,</p> <p>That's because it's not a Word Web App. You need the Windows Phone SDK to run the sample.</p> <p>Thanks!</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment7714 samidip http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Thu, 22 Mar 2012 20:50:22 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>Hi,</p> <p>I tried out the exact code, but when I try to open the document I created using this code, I get an error like this - </p> <p>http://i39.tinypic.com/zjhs9t.png</p> <p>Could you please tell me what I might be doing wrong? Thanks a lot!</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment7712 randomdude http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Thu, 22 Mar 2012 17:29:29 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>Gary,</p> <p>Yes, the RedirectUri is not optional and has to be registered with Live Connect API before use. Glad it worked for you!</p> <p>Thanks for the comments & actually trying out the code!</p> <p>Sam</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment7365 samidip http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Tue, 03 Jan 2012 20:36:16 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>Well, this demo app did work from home but I did have to specify the RedirectUri parameter. Without the parameter, the SessionChanged event never fired. With an invalid but supplied RedirectUri, it fired and failed with an error. Once the RedirectUri was set up on SkyDrive and correctly specified in the parameter, it worked.</p> <p>Gary</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment7364 GaryDavis http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Tue, 03 Jan 2012 20:32:20 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>Aha, thanks.</p> <p>My initial attempt to run the project thru the emulator failed but I think that is because I am within a company environment. I will try again from home.</p> <p>Gary</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment7328 GaryDavis http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Tue, 20 Dec 2011 22:53:39 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>Hi Gary,</p> <p>The RedirectUri is a domain that the APIs use to exchange tokens, data, and messages with your app. I used my personal website as the URI .. does not seem to be pinged from Live services.</p> <p>More details @ http://msdn.microsoft.com/en-us/windowslive/hh278360</p> <p>Hope this help!</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment7321 samidip http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Tue, 20 Dec 2011 06:00:28 GMT Re: SkyDrive usage through Live SDK on Windows Phone <p>I must be missing something. I know what ClientId is since I got an ID from the Live site but what is the RedirectUri supposed to be?</p> <div class="reCodeBlock" style="border: 1px solid #7f9db9; overflow-y: auto;"> <div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #000000;"><live:SignInButton Name="btnSignin" ClientId="Your_Client_ID" </code></span></div> <div style="background-color: #f8f8f8;"><span style="margin-left: 0px !important;"><code style="color: #000000;">Scopes="wl.signin wl.basic wl.skydrive wl.skydrive_update" </code></span></div> <div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #000000;">RedirectUri="Your_Redirect_URI" ...</code></span></div> </div> <p>Thanks,<br /> Gary Davis<br /> Webguild.com</p> http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx#comment7319 GaryDavis http://www.silverlightshow.net/items/SkyDrive-usage-through-Live-SDK-on-Windows-Phone.aspx Mon, 19 Dec 2011 23:45:37 GMT