Thanks for the link.
I trialed the two amendments but as expected re category field the main product category settings were not copied across to Facebook. The numeric value for the Google category selection is used.
Comment summary added to your linked Github page.