[I have asked Prime31, and they only replied that the return is indeed a string, offering no other information]
Using Prime31s Social Networking iOS Plugin – I can confirm that permissions ARE granted (and in fact the script’s debug log shows the same). The problem is that the script doesn’t seem to be triggering the part that sets my variables to true. I can’t seem to figure out why. Granted I’m new to C#, so it could just be a dumb mistake.
The Code:
IEnumerator CheckPermissions()
{
while (!canPublishStream || !canPhotoUpload)
{
var permissions2 = FacebookBinding.getSessionPermissions();
foreach( var perm2 in permissions2 )
{
if (perm2 == "publish_stream")
{
canPublishStream = true;
}
if (perm2 == "photo_upload")
{
canPhotoUpload = true;
}
print ("A permission2: " + perm2 + " ( " + canPublishStream + " / " + canPhotoUpload + " )");
}
yield return new WaitForSeconds(5);
}
}
XCode provides a slew of information, showing I have permission for a bunch of stuff. However, the results below show what confuses me: that perm2
sure does equal the variable (publish_stream) or (photo_upload), but the true statements were not triggered.
A permission2: photo_upload ( False / False )