Problem changing the parent group for a node
Ok, I figured this out. Here is what I had to do.

I had to address this slightly differently. I just had to change $node-&gt;og_parent = 23; to $node-&gt;og_parent-&gt;nid = 23;.

I just had to address the specific node id and that fixed it.