AuthenticateAsync has been deprecated. How to use with Facebook C# SDK? - windows-phone

After about 3 hours I found out that in universal Windows Phone 8.1 apps the AuthenticateAsync-method has been deprecated.
When using it in Visual studio, at first, it is silent. When you try to run it, it says:
AuthenticateAsync is unavailable for releases beginning with Windows
Phone 8.1. Instead, use AuthenticateAndContinue or
AuthenticateSilentlyAsync.
After another 2 hours, how hard I try, I cannot find a way to implement the example of the Single-sign on, it simply doesn't work.
AuthenticateAndContinue fails because the "remote procedure call failed"
SilentlyAsync returns the error, that the parameters are incorrect, but that is logical.
Do any of you guys know of a way to sign in, without using AuthenticateAsync?
Edit: When running anyway, it throws a not implemented Exception

I assumed "deprecated: was just a compiler warning saying "we suggest you shouldn't use this API anymore".
I was wrong - it's apparently a hard error with the OP's Windows Phone SDK. The new SDK doesn't support the old call; I doubt the Facebook SDK supports the new call.
SUGGESTED WORKAROUNDS:
1) Try using an older Windows Phone SDK (or, if possible, target your compile for an older version of the runtime).
2) Wrap your call in Dispatcher.RunAsync
WebAuthenticationBroken.AuthenticateAsync - NotImplementException
http://www.asp.net/web-api/overview/web-api-clients/calling-a-web-api-from-a-net-client

Related

Error building Shoutem preview build after modifying extension

I've working on modification of the 'shoutem.notification-center' extension using as a guide this tutorial and I'm having some issues.
At first I tried to use the Extend the extension approach, but like I've posted on this issue, didn't quite work.
So I've tried the Directly modify approach, which works fine on my local phone, but once I use the command shoutem push to send my modifications to the server, the instance on Appetize never stops the 'Building your application' message.
The major problem is that there's no error code or feedback.
That was not the first time that happened, I had the same issue modifying other extensions. Any idea why this is happening?
The issue is likely one of two things.
New native dependencies were added that the Builder preview cannot process due to it's predefined binary.
Your directly modified extension works locally, but not on the Builder because locally it's path is still AppName/extensions/shoutem.extName, but on the Builder it's AppName/extensions/yourDevName.extName, so it fails.
The first one can be resolved by either using a non-native solution as a replacement for the native dependency you were using, or to simply use a local emulator for previewing purposes.
The second can be resolved by making sure all extensions that reference the one you directly modified are edited to now reference your new directly modified extension instead of shoutem.extName.
If you could shoot me your app ID in a comment I can let you know which one it is and what the best steps to fix it would be.

Twilio .NET API CallStatus Enum comparison?

I'm updating my Twilio to use the newer library (5.x)
I create a phone call using the new API. I want to check the status of the call.
Dim CallStatus = MyTwilioCall.Status
If CallStatus.Equals(CallResource.StatusEnum.Queued) Then '// Success
This does not work, it evaluates to false, although when i debug and inspect it shows that callstatus has a value of {queued}.
If i try:
If CallStatus = CallResource.StatusEnum.Ringing Then '// Success
I get an exception that Operator of '=' is not defined for CallResource.StatusEnum. For fun, i tried using the is operator as well with no success. I supposed i could .tostring() and then compare, but that seems silly. Am i doing something wrong, or is this just the way twilio client is built?
Twilio Developer Educator here. You did indeed find a bug that we have since fixed in v5.1.1 of the library. If you use NuGet to upgrade to v5.1.1 or later, that should solve the problem for you.
https://www.nuget.org/packages/Twilio/5.1.1

MS Access crashes when trying to close down a connection to Blackbaud's Raiser's Edge API

I am the IT department of a Non-Profit organization. I have a question today which might be too specialized for this forum and I hope I do not waste my time writing it up. We are using Blackbaud's 'Raiser's Edge' (RE) Software (written in VB6 and VB.net as far as I know) to keep track of our membership and donations. We have an MS Access application (have been using it since before we got RE) to process donations and for now I want to keep it and only do minor changes to adapt it to the new software.
The MS Access program is now doing a few calls to the RE API which work great. To login and establish a connection I have to create a new 'REAPI' object and use it for other API calls. That REAPI object has a method called: SignOutOnTerminate which needs to be set to TRUE when creating that object. It is supposed to kill all connections to RE once my application closes. There is no regular .close method.
Once I create the object I can do work as many times as I want and there is no problem at all as far as I can see.
However when trying to close the application or set the object to nothing (Set REAPI = Nothing) Access crashes immediately (It fades out and I get the message that Windows is looking for a solution to the problem. Then Access closes and restarts itself.)
It is more annoying and unprofessional then hindering production but I want to fix it.
The App was developed on Windows 7 64-bit with Access 2010 32-bit. It was tested on Windows XP with Office 2003 or 2007 machines (32-bit) and behaves the same way.
I have posted this problem already on 2 Blackbaud forums and tried a suggested a work around which did not work (kill the process with a shell command and then set the object to nothing). Hopefully I will get more answers soon.
I tried to just exclude the SignOutOnTerminate when creating the object. But got the same behavior.
I looked in the Event Manager --> Application Log and found the Crash. It reported that access crashed because of this dll: C:\Windows\System32\MSVBVM60.dll (It is actually located in the SysWos64 folder as it is a 32-bit application).
Looking up this error I found some suggestions to replace it with an earlier version of the dll, the one which ships with XP. I found a file and tried the suggestion but it still crashed. The error log reported the older version number as faulting so I registered it correctly.
I also created a case with Blackbaud but the rep did not know what the problem is and did not have MS Access installed. He is trying to get his support team to install it for him so he can test and investigate this error.
The last suspicion I have is that the API is causing the error and my code is fine.
But before I make this assumption and until I get my answer from Blackbaud I want to do a final check, but I have run out of ideas for further trouble shooting and resorted to pose this problem in this forum.
Any Ideas?
I realise that this is an old thread and if you have solved this by now then that is great. However this is a known issue with The Raiser's Edge API. If you use .NET with RE's API (which is COM based) there is definitely some resource that is not cleaned up properly. At one point I suspected that it was something to with making use of RE's graphical interface i.e. by calling the regular login method to log you into RE. However even if you log in to RE using the "as a server" method supplying the user name and password it still crashes on exiting the application.
We have an installer that sets up credentials in RE. The installer is in .NET and accesses the RE API. We now show a message just before the end of the application telling users to ignore the impending crash... Not a great solution by any means.

Delphi Clipboard and Graphics DCU's Missing

I have this weird thing that keeps happening when trying to use the following unit:
XLSReadWriteII 5
Every time I add one of their components to my form and compile it, it gives me the following error:
[dcc32 Fatal Error] Unit1.pas(16): F1026 File not found: 'C:\Users\Gordon\Documents\RAD Studio\Projects\grdi\Clipbrd.dcu'
This tells me that there is no DCU's in my API, no I get the same error on my windows 7 and my windows 8 pc's. Delphi was installed from the embarcadero website via their installer.
If I download a clipboard.dcu and .pas file and run it again it gives me the same error saying Graphics.duc is missing...
I have emailed the company Axolot Data (the creators of XLSReadWrite 5) with regards to this issue, they just keep telling me my API is corrupt, on both pc's??
However what I find strange is that their supplied samples run.
How can I fix this?
I think I have found a solution or reason this is happening.
XLSReadWrite 5 is a VCL component which references the VCL API, im using FMX.
The package was designed for VCL and not FMX but for some reason shows up in the FMX Units.
Strange but that might be my cause

Adobe Air crash on NetConnection call

I have an Adobe Air mobile application that has a NetConnection. One on call to my AMF server it makes the call and everything returns fine. When I make a second call my app crashes.
Anyone one run into this?
you're going to need to get more info. Run it in debug mode and you should get a stack trace, variable values and the like.
Figured it out. My models in the client and on the server didn't match. Why AIR just crash and didn't give me an error is weird.
Maybe your server client is the cause of the error!
It may be the reason of automatic combine of the two amf calls by NetConnection.
So, your function on server side will be run twice.
Check your require or require_one on server side.