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