Updates fb and g+ functions to be called on api load, fixes #695

Possible fix for #695