Simple Facebook "Share Link" - javascript

I am working on a site where posts are made and I'd like to give visitors the ability to "share" a particular post that they link on their timeline. I have never done any social media integration, but I followed the instructions via the FB API and am still having problems. It's easier to show you than try to explain it. Go to http://www.badcustomerbureau.com/ and click on any of the Share links at the top of any post. Instead of sharing the post you clicked on, it tries to share a generic post with the same photo every time (photo of a dog). I used the code generator on the FB help site and it still has this issue. Please help!
I did receive one suggestion from a member of this site, but I am still seeing the same behavior.

I think its already working. I've tried it before in my own website http://socialviralworld.com/. You just have to login first and see the changes.
See image:

Related

How to know in real time when a website post a new content?

I would like to know if there are a way to see a new website page before it is posted in the home page, but after they posted it on Internet.
I tried with sitemaps, but the problem is that I want to monitor it 24/7, and the sitemps shows historical information, not real time.
For example, suppose this scenario:
BBC created an article around 23:05, but they shared it on its home page around 23:15. Are there a way to obtain the link of the article or title of the article before 23:15?
No. A file on a website is totally invisible unless some other page links to it.

I want to include a manually typed image below an image when I click on a LinkedIn share button?

I have a LinkedIn share button, I am getting a popup like this. I want some message after the link, like we get in Facebook or Twitter. How could we do the same on LinkedIn?
http://www.linkedin.com/shareArticle?mini=true&url=google.com&quote=YourarticleSummary
You have these options, you may not choose both:
Share an image with LinkedIn Share API.
Share a description with LinkedIn Share API.
I have talked with LinkedIn Support about this for two weeks, (Oh the humanity...), and I have been e-mailing the developers to fix this. But, to no avail.
Let's also look at share previews for sites that each follow one of these rules: Wikipedia (has no image, has 1 description) and GitHub (has 1 image, has 1 description).
Wikipedia: Description Text Shows (because no image is used)
GitHub: Image Shows (but the supplied description is not)
I made a test site, with only description, and it behaves according to the rule above-listed. I'm well aware that the Official Microsoft LinkedIn Share Documentation makes no mention whatsoever of this, but all direct experience seems to disagree.

Social media sharing buttons

What is the correct links for sharing content on user's social media pages/profile? Something similar to the web page sharing links:
https://facebook.com/sharer/sharer.php?u=xxxx
https://twitter.com/home?status=xxx
I know that instead of "xxxx" you have to put your page url which you want to be shared. Exemple when I press the share button (facebook): 08rnz.png . I need links for more social media's sharing and via e-mail too.
So if I put https://facebook.com/sharer/sharer.php?u=site.com/site/index.html it doesn't work. It's any scripts for those sharing buttons? What exactly I have to do? I want for: facebook, twiiter, google plus, e-mail, whatsapp.
Thank you!
This service could be helpful:
sharelinkgenerator.com
But your problem is most probably with localhost. It is not an internet address, just your local server.
Update:
For sharing by email:
Share
For Whatsapp:
Share on Whatsapp
You might want to look into: addthis.com, you can use this website to generate share buttons for your website.
It creates a script, that you have to add to your webpage.
You have probably seen the buttons before, since they are used a lot.
What you need to do:
get a (free) account on their website
you can design your share buttons in your addthis account
generate and copy the javascript (script tags) to the bottom of your page, just before the closing body element

redirect link from facebook to website - javascript?

I have articles posted on facebook from my website http://juniorgoldreport.com/
the website is made in wordpress, and I've also created a "Welome" landing page where I want most new users to be directed too.
I have no idea where I can find information on how to do this, even after countless efforts of googling.
To give an exact idea of what I' trying to create...
Where someone clicks on an article on facebook, it'll take them to the "welcome" sign up page, then have a link on it to the article that they clicked on. The link would change depending on what article they clicked on so they can be redirected properly.
I know I can just hard code it, and create multiple landing pages with different links in relation to the article posted, but this just seems inefficient.
Does anyone know how to go about doing this?
this is the landing page
http://juniorgoldreport.com/welcome/
You can try using Javascript, as it would be much easier than creating several webpages. At the point in your page where you want a link to be placed, put something like
<p id="mynewredirectlink">Hey!</p>
And then at the bottom of your code, add some javascript to resemble this:
<script type="text/javascript">
if (document.referrer === "facebooklink.com")//Where did you come from?
$("#mynewredirectlink").innerHTML = "Hey!" //Where are you going?
Then include the other sites you need, and close it with
</script>
There may be some sites that have varying parts, like an id, so if you need to, you can use (document.referrer.includes("facebook.com")) instead.
You can convert your landing page into a fullscreen modal popup. So every new visitor will see the popup when the visit the site or any article. They can fill the form / they can close it to see the article. There is already several plugin for modal popup / newsletter popup. You just need to do a little bit css to make it full screen.

Php Facebook share link

I have a website with some Facebook "Share" buttons.
The Facebook "Share" button was working properly until a few days. I haven't touch the code in the meantime.
Now, I get a notification "Not found- back to Facebook", each time I click on the share button in my website.
Here is an example of a link for sharing:
http://www.facebook.com/sharer.php?s=100&p[title]Mytitle=&p[summary]MySummary=&p[url]=http://www.tribalartmagazine.com/index.php?content=article&section=news&id=360&lang=en&p[image]=http://www.tribalartmagazine.com/assets/data/news/n360.jpg
Thank you for your help as I really don't see the problem.
I searched but I've seen nowhere that Facebook has changed the attributes of the shared links lately so I really don't know what should be done.
urlencode only the arguments, not everything, also, the correct url is:
https://www.facebook.com/sharer/sharer.php
not
https://www.facebook.com/sharer.php
<a class="element1_item_facebook_on" href="https://www.facebook.com/sharer/sharer.php?s=100&p[title]=&p[summary]=&p[url]=http%3a%2f%2fwww.tribalartmagazine.com%2findex.php%3fcontent%3darticle%26section%3dnews%26id%3d433%26lang%3den&p[image]=http%3a%2f%2fwww.tribalartmagazine.com%2fassets%2fdata%2fnews%2fn433.jpg">Share Me</a>

Categories

Resources