Could you provide a one page example with a connection to say Facebook ( assuming the user has authorized Facebook via the admin already )

The examples above are somewhat confusing if one isn’t sure where to get $service or $unique_id from.