Merging 2 website pages likes? - php

I have a website that I added the Facebook like button to it. Assume the website url is "www.xyz.com"
In this website I have articles, each of which has an id in the url like this "www.xyz.com/3/some-text-here"
In my website "www.xyz.com" and "www.xyz.com/3/title-here" refer to the same contents. My question is how to tell Facebook that these links are the same so if a user liked or shared one of these web pages then both of the pages will get the same numbers of likes and shares.
Thanks.

The solution is to set the data-href property, in one of the pages, to the other page.
reference: https://developers.facebook.com/docs/plugins/like-button

Related

How to share part of webpage on facebook

I have web page e.g.
bricks.com/list
with navigation bar, side bar and dozen of small articles on the page. I should make it so users can share on facebook just one of that articles from the page without open another page to show single article.
Some people says it is impossible :) . Is it?

How detect from which url a use comes

I have several blogs.
I also have a wordpress blog , which is the main one.
I am driving traffic from the blogspot to the main wordpress blog.
I want to display content or links based on from which url a user is coming from.
For example.
If a user is coming from www.anyname.com/mobile
I want to show mobile phone related conetnts.
If a user is coming from www.anydomian.com/laptops
I want to shows laptop related contents.
So - how to detect from which url a user is coming from ?
I have tried the "HTTP_REFERER" code , it shows only current url.
You can use: Mobile Detect
So if it is mobile you redirect them to any URL you want, if it's not then stay on the page

What's up with Facebook Pages why is there fragmentation

I'm trying to figure out why Facebook is creating fragmentation with its pages. I really don't understand it. Also is there anything that can be done about this.
Here is a perfect example I have my Facebook company page for "Scoreoid" (http://www.facebook.com/pages/Scoreoid/245182948843019) this has my content wall post's, photos ect..
Then I have this page which I guess is only connected to the Scoreoid website which is new and was automatically done http://www.facebook.com/pages/Scoreoid-the-ultimate-game-platform-for-developers/269861406410210
This is the page for the Scoreoid site which has 130 likes but of course on Facebook it only shows 15 another question either way why is there two pages why can't everything be connected to one page.
All this does is create fragmentation which is noting but bad user experiences.
It would max sense to have everything directed to the Facebook main page. Of course I have other questions for which do I run advertising on which should I update with content?
I've already answered you here two weeks ago:
Facebook Likes not showing on Facebook page but show up on site
Facebook pages like counts are NOT THE SAME as like counts for a web site. They cannot be joined by Facebook as they are two separate IDs. You can have your parsing scripts add together the two like counts yourself.
This has been my experience. If you add the open graph meta tags (og:url, og:image, og:type, etc.) Facebook will create a "facebook page", but this page will only be accessable by you. This is the message that facebook will show on this open graph page: http://snag.gy/z9UfG.jpg
If besides this you create another page then it will not be linked with this page. I recommend you use the page you created as that page is accessible by everyone.
If this is not your case then please clarify.

Facebook Social Comments Plugin not able to link to post content

I would be grateful for some assistance with Facebook Social Plugins.
I have a bunch of portfolio items on my website that are rendered with a fb-comments-plugin at the bottom of the page.
At the top of the page (in the header) is a "like" button that is designed to cover the whole site (i.e. if you "like" the site - click the "like" at the top of the page). But, if you want to "like" the post - click the "like" alongside the post.
Anyway, every now and again - the comments plugin on one of the portfolio items indicates to me:
"Warning: {url} is not accessible"
This does not appear to be consistent across all items. For instance:
http://www.greensidefilms.com.au/portfolio/bride/
does not work, but:
http://www.greensidefilms.com.au/portfolio/twilight/
does work...
Confused I am, seeing as it is exactly the same code generating all these pages.
Is there something not quite right with the og meta tags that is causing the plugin to be confused?
Those links you provided are dead
I had some trouble when I first started working with the Facebook social plugins and found that the problem you are describing is with the APP ID, it is designed to work with a domain in your case yes it is the same domain however you should double check if the same APP ID is being used in all your plugins, using the wrong APP ID will cause that kind of behavior.

Share multiple items on facebook

I need to build a page with 2 different facebook share instances.
- there is a video i want the end-user to be able to share on his/her profile.
- and then, there is the page itself, which i'd like the user to share.
how to build a page that can let users share 2 different items on a single page?
You just need two separate Facebook Like Boxes or Buttons (note that Like Boxes can only reference Facebook Pages), each configured to the relevant URL (either the video or the page). You'll only need the script and fb-root tab once on the page.
Like Button documentation
Like Box documentation

Categories