Hello @TraceyR216 ,
Facebook doesn't allow this type of API connection and coding these days. We recommend using a landing page form for social platforms. Or you can use the URL to your website page that has the coded form.
See also:
Sharing landing page sign-up form URL
... View more