No it is not a proper solution at all. First it is not not recommended to use wp_debug on production site, but it is higly recommended to run it on development site.
Second - it is not recommended to upgrade / install plugins on production site unless you test it first on development site.
So if you are following best practices, than you will see this error notice first on your development site and you will not put it to production one, where any reader would see it.
And if i would need this version desperately for some reason, it would be probably much wiser to look at line 40 of class-opengraph.php, then you will se, that it is checking value of $this->facebook_plugin, which is not defined in the class, nor its parent class and depending on your needs you would write something like var $facebook_plugin = false; And of course informing the developer, what is what i did here ;)