- This topic has 11 replies, 2 voices, and was last updated 7 years, 5 months ago by Puro Support.
- December 16, 2015 at 6:41 pm #2786
I’m trying to add a Facebook login using the process described on Facebook for Developers.
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
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
Correction, insert the script provided by Facebook in the footer field of Header and Footer Scripts plugin.December 17, 2015 at 3:22 am #2792
Thanks. 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
Please, 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 #2794December 17, 2015 at 5:17 am #2795December 17, 2015 at 5:59 am #2796This reply has been marked as private.December 17, 2015 at 3:53 pm #2797December 17, 2015 at 4:16 pm #2798
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-appDecember 17, 2015 at 5:05 pm #2799
I had www before my site url. I guess that was incorrect! Removed and it works. Thanks for all your help!
PatriciaDecember 17, 2015 at 5:06 pm #2800
Awesome 🙂 Really glad to hear you’ve made progress.
All the best with your site.
You must be logged in to reply to this topic.