- This topic has 11 replies, 2 voices, and was last updated 9 years ago by Puro Support.
- AuthorPosts
- December 16, 2015 at 6:41 pm #2786
Pata GoniaParticipantI’m trying to add a Facebook login using the process described on Facebook for Developers.
I am uncertain where/how to add the SDK Javascript as described.
I’m using buddy press and currently the login/register is located in a top bar on the homepage.
December 16, 2015 at 6:44 pm #2787
Puro SupportKeymasterHi Pata
Thanks for reaching out.
Try using the following plugin: https://wordpress.org/plugins/insert-headers-and-footers/. Once activated, go to Settings > Insert Headers and Footers. Insert the script part of the Facebook code into the header field provided.
The HTML portion of the code can be inserted into a page via the Visual/Text tabs or into a widget in a widget area or Page Builder. Use the Text widget.
Hope that helps.
December 16, 2015 at 6:49 pm #2788
Puro SupportKeymasterCorrection, insert the script provided by Facebook in the footer field of Header and Footer Scripts plugin.
December 17, 2015 at 3:22 am #2792
Pata GoniaParticipantThanks. Everything seems to be in place on the page thanks to your direction, though I still can’t seem to get it to work properly. I’m getting an error about my URL. Not quite sure what that means but I guess I’ll go back to the app dashboard to find out.
December 17, 2015 at 3:24 am #2793
Puro SupportKeymasterPlease, send your URL so I can take a look. You can use the Set as private reply checkbox below if you’d like to keep your site private.
December 17, 2015 at 4:11 am #2794
Pata GoniaParticipantThis reply has been marked as private.December 17, 2015 at 5:17 am #2795
Pata GoniaParticipantThis reply has been marked as private.December 17, 2015 at 5:59 am #2796
Puro SupportKeymasterThis reply has been marked as private.December 17, 2015 at 3:53 pm #2797
Pata GoniaParticipantThis reply has been marked as private.December 17, 2015 at 4:16 pm #2798
Puro SupportKeymasterThanks 🙂
It looks like you had the script in a Text widget above the HTML as well as in the Header and Footer Scripts plugin. I’ve removed the redundant script.
The main problem is that in Facebook settings, you need to go to your app and add the site URL that you’ll be using the app on. That’s the reason for the notification/error message.
Here is a thread that might help:
http://stackoverflow.com/questions/9670267/site-url-for-facebook-app
December 17, 2015 at 5:05 pm #2799
Pata GoniaParticipantI had www before my site url. I guess that was incorrect! Removed and it works. Thanks for all your help!
Patricia
December 17, 2015 at 5:06 pm #2800
Puro SupportKeymasterAwesome 🙂 Really glad to hear you’ve made progress.
All the best with your site.
- AuthorPosts
You must be logged in to reply to this topic.