(1) Log out whilst viewing a registered atrtcle, called from a menu item which has a view access calledd 'standard-edit' with id = 7. Also tried this with calling menu as public but gave same result.
I'm not sure what you mean by the last part. If you called with a menu item that was public, what went wrong in that case?
For #2, I'm honestly not even sure where/if the getLinkFromMenuItem is called anymore. That's actually some older code that's likely to be removed soon, since it uses the SourceCoast library, which is only available when JFBConnect is installed. If you see that being called from somewhere, let me know. I may have just missed it.
The main code to look at is the getLoginRedirect() function in the helper.php file. There's actually some comments in that code as to what's occurring, and it's pretty straightforward. I'd look at that, if you're going to dive into the code anywhere.
We've definitely tested that code a bit, but it's always possible we missed something!
Thanks,
Alex