I am facing a problem with Facebook like button
crate a dynamic URL by appending id
apply this URL to Facebook like button
when user press like button it show blank comment box with outdata in og:meta tags
after refresh the page and click like button it show the og:meta tags details
I am using XFBML version and when i put generated URL in Facebook debugger it show correct information.
Related
I need to extract a link that is generated on the client side when clicking a button.
When clicking the button the browser opens a new page and redirects the user to the advertiser. How can I get this link?
Just do simple query for that element and get text:
document.querySelector('#visit-advertiser:j .ytp-ad-button-text').textContent
Similar to this medium article where a custom og:image, og:title, and og:description are displayed for different articles, when the facebook share button is clicked a popup opens to let the user type a message and below is the image/title/description grabbed from meta tags (og:image, og:title, etc)
When the user clicks on the facebook share button I then dynamically change the meta tags to customized images/descriptions using javascript like so
document.head.querySelector("[property='og:image']").setAttribute("content", image_url)
the problem is that the image isn't appearing at all when the fb share button is clicked - when I enter the url into Sharing debugger it works, but on the actual website it doesn't
Not certain what your aim is but you won't be able to set the og:image using Javascript because facebook is getting the image url etc. from the HTML returned by the url when its own server requests that url. It's not getting that data from the client.
I'm working on a page which already successfully uses Shadowbox.js. There's a search link at the top of the page which looks like this:
Search
This is located in the header.
In the body of the page I can search for a user and load their account information via AJAX. The plan is to add a button to their information table so a system admin can edit it. I'd like to use Shadowbox to bring up a confirmation page once the admin has submitted the edits. I'm using this link to try to do so:
Submit
However, when I click this link, it navigates directly to createPopup.php instead of loading it in a Shadowbox.
Am I supposed to be doing something with Shadowbox in JavaScript so that it plays nicely with links loaded via AJAX?
Like I have website with internal web site page link and social media and other website link, If User click any link, div which has onclick event, button any type of event which is reload page or go in other page in site.
I want to check that user is leaving website or just go into another page of website.
Simple, I want to check that user is on my web page and leave before reload page or browser url change to next url.
I have a Facebook XFBML Like and Send button.The code is generated with Facebook like plugin .
Like seems to work well, but Send only display an empty flyout.
Example
http://jsfiddle.net/CVDLc/1/
Click on the Send button to see the empty flyout
Anyone have an idea why?