found sample code on this forum including this snippet: "if (ning.CurrentProfile == null) {"
But I could not find any documentation on the "ning" object. http://documentation.ning.com/ says: "We're taking a short break" for a long time.
The below snippet of code seems to work in the browser. And, when using makeRequest to call another server, "opensocial_viewer_id" param is absent when viewer is not signed in. But I don't see that either "opensocial_viewer_id" or "_anonymous" are documented. Can someone from Ning say whether we should be relying on these?