microsoft / winsdkfb

The Windows SDK for Facebook allows developers to provide Facebook integration for Windows Apps.
Other
180 stars 101 forks source link

frictionlessRequests? #29

Open TedHoward opened 9 years ago

TedHoward commented 9 years ago

Very useful feature for games. It's not clear at all what would be involved in supporting it, but it would be great. https://developers.facebook.com/docs/games/requests/v2.1#bestpractices

TedHoward commented 9 years ago

Actually, quite simple and possible. In the iOS SDK it's an init parameter. In the Android SDK it's not currently possible (?!). Here's how to do it in this Windows SDK: PropertySet^ parameters = ref new PropertySet(); parameters->Insert("frictionless", "1");

Then use that in session->ShowRequestsDialog(parameters). It's that easy...

But then the next request sent to that recipient results in an exception related to the redirect then things go downhill quickly to a null-deref in mshtml.

mshtml.dll!CCoreWebViewEventHandler::NavigateRedirected(struct IHTMLWindow2 ,struct IUri ,struct IUri ,int ,unsigned long) Unknown