Andrew-Sepic
Andrew-Sepic

Reputation: 563

401 Authorization Required on Facebook Share

I've just created a Thank You page for a completed product purchase and implemented some pretty cool responsive social sharing buttons via http://kurtnoble.com/labs/rrssb/

I'm pretty stoked with the buttons but I'm getting a 401 Authorization Required error upon sharing the page via Facebook. All the other buttons work accordingly. I'm not sure what I'm missing.

http://viraone.com/thank-you

I have the following open graph tags in the header..

<meta property="og:title" content="Good Stuff from Viraone" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://www.viraone.com/thank-you" />
<meta property="og:image" content="http://www.viraone.com/wp-content/uploads/2014/08/facebook-share.jpg" />
<meta property="og:description" content="Good Stuff is the first step to getting energized and focused. It’s raw, vegan, gluten-free, 95% organic/wildcrafted, and non-GMO." />

Any ideas of what's causing this? I previously had the sites folder under password protection on the server, but I've since removed this (5 days ago) and I'm still having this error.

Upvotes: 0

Views: 8043

Answers (1)

Andrew-Sepic
Andrew-Sepic

Reputation: 563

Ok,so this issue was my link address for the sharing button.
Previously it read

<a class="popup" href="https://www.facebook.com/sharer/sharer.php?u=http://viraone.com/"> <span class="text">facebook</span></a>

but this was what was generating the 401, my misunderstanding was that this part of the URL post '?' was supposed to be what URL was shared to FB, but that's not the case. This is the URL from which the sharing originates hence, because I was running this from my Thank You page the correct sharing button should read..

<a class="popup" href="https://www.facebook.com/sharer/sharer.php?u=http://viraone.com/thank-you/"> <span class="text">facebook</span>

Hope my fussing about helps somebody else too!

Upvotes: 1

Related Questions