Check out the .NET OpenSocial client library and the C # port of Chow Down . These would be two alternative methods for attracting the GFC ID of the current viewer to .NET, although you probably have to translate the latter from C # to VB.NET if you want to use it, since it is not a shared library. Unfortunately, I don't think the client library was written using Friend Connect, so a simpler method fcauthis probably not available. You will have to go through the 2-legged OAuth process . I assume the client library supports this, as it is the port of the Java version that does.
, , , , Ajax/XHR. API- JS ID:
var req = opensocial.newDataRequest();
req.add(req.newFetchPersonRequest('VIEWER'), 'viewer');
req.send(function(response) {
var data = response.get('viewer').getData();
if (data) {
visitorId = data.getId();
} else {
visitorId = null;
}
});
: , : friendconnect-dotnet