-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
U.S. isn't the world: Meta's “supreme court” probes if it combats explicit AI fakes globally
By Martin Hodás,
- meta
- oversight board
- (and 10 more)
- 5 replies
- 8 views
-
- 0 replies
- 3 views
-
Meta plans to begin labeling AI-made content on Facebook, Threads, and Instagram in May 2024
By John Callaham,
- 3 replies
- 2 views
-
Meta says that all videos on Facebook will now be vertical, adds more video controls
By Karthik Mudaliar,
- 2 replies
- 2 views
-
The EU has launched a Digital Markets Act violation probe for Apple, Alphabet, and Meta
By John Callaham,
- european union
- eu
- (and 8 more)
- 4 replies
- 2 views
-
Question
wrack
Hi,
I am working on a small site http://www.hagglehive.com and I want to use Facebook follow, like, share & comments plugin. http://www.hagglehive.com/en-au/Haggle/Detail/Lumia-930-Green-4G-Lte-32Gb-On-25-Aug-2014-Price-549-221 page has all of those plugin added.
I am using ASP.NET with .NET Framework 4.5. Below is the code at the bottom of the master page.
Below is one of the div where follow button should show up.
What I want to do is, hiding all Facebook related DIVs first and then using jQuery Ajax, I am trying to connect to Facebook and see if the result is a success. If so then I make them all visible. This is the part I am struggling with.
In the above call, I have commented out the part where it hides all divs first. So it is all working now and you can see Facebook div at the top but if I uncomment them then nothing shows up.
Below is the function "ShowFacebookIfAvailable".
Any help would be good as I am stuck here.
BONUS : What I would ideally like is, first check if Facebook is blocked and only load the JS if not blocked, saving a little download and improving the performance a little. Not sure how to do this though!
Cheers :)
Link to comment
Share on other sites
9 answers to this question
Recommended Posts