How to show facebook comments box multiple times on a page? - facebook

I have a page for a bakery site, and on the page, there will be a list of cakes. There will be a picture of the cake, followed by a comments box, to let people comment on that specific cake. Each cake will need to have its own set of comments, separate from each other.
But unless I'm mistaken, facebook comment plugin is linked to a page's url, and can't be shown multiple times?
Is there any way to show it multiple times per page, and to link it individually to each cake, so the comments don't mix up?

But unless I'm mistaken, facebook comment plugin is linked to a page's
url, and can't be shown multiple times?
It can be shown.Though it is linked with your site url,you always have the privilage of appending custom string after the ternerary operator in your URL.
Is there any way to show it multiple times per page, and to link it
individually to each cake, so the comments don't mix up?
The trick here is to make a url unique.
This can be done in various ways:
1)www.something.com#commentbox1
2)www.something.com?section=commentbox1
I am using this on my current website where there are more than 10 comment boxes:http://www.arrowlife.com/

In addition to unique anchor tags per product, you may also add the product ID in a query string such as www.yoursite.com?productID=44
In my case I was dynamically creating a div showing the product detail. It was also necessary to force the Facebook script to show the comment section using the FP.XFBML.parse command

Related

Link query strings get cut off

I'm not aware of link designing strategies, so I am not sure why my link gets chopped off when someone clicks on from sources like Facebook etc.
I have a 'share feature' on my platform, which lets a user create a link to their listing and share it with people.
The link I generate for the listing in my backend has parameters, which reads the listing id and the type and displays content over HTML
Here's a sample link for a listing
https://www.fayvors.com/Share.html?hash=5eccccaa-7b8d-42bd-af8c-08d50da0c867?type=lessons/
However, when I share the link on facebook and click it, the browser redirects to a link that's cut off
https://www.fayvors.com/Share.html?hash=5eccccaa-7b8d-42bd-af8c-08d50da0c867%3Ftype%3Dlessons
I'm not aware of link designing principles, so I'm a bit lost here!
Thanks!
Your URL contains “special characters” (like a second question mark inside the query string), but you neglected to apply proper URL encoding when putting this URL as a parameter value into another URL:
javascript:window.location.replace('https://www.facebook.com/sharer/sharer.php?u='+window.location)
Use encodeURIComponent on the value you are concatenating to the sharer URL here.

Facebook Page Comments Using Graph API & Stream Filter

I have my site working using the Facebook Comments Plugin as you can see here http://www.amanzitravel.com/namibia-wildlife-sanctuary
I am trying to use the Graph API to retrieve the comments so they are on the page in a form that is beneficial for SEO (as outlined here https://developers.facebook.com/docs/plugins/comments/).
Ideally I want to see not only all comments, but replies to comments. According to the API (https://developers.facebook.com/docs/graph-api/reference/v2.0/object/comments) using filter=stream should do the trick.
However when I do that I only get the two most recent comments e.g. https://graph.facebook.com/comments/?ids=http://www.amanzitravel.com/namibia-wildlife-sanctuary&filter=stream as opposed to the default https://graph.facebook.com/comments/?ids=http://www.amanzitravel.com/namibia-wildlife-sanctuary where I get all the top level comments but none of the replies.
EDIT: Further to this, it appears to update itself some time later, but when another reply is added it goes back to displaying a subset of all the comments for a period of time. Its unfortunate because it means I can't rely on this to be accurate.
Is there anyway I can make this work properly?

facebook comments widget - how to monitor latest comments?

I have over 10,000 pages on my website. I just created a php script to automatically integrate the facebook comments widget into each pages.
However, i was wondering if there is a way to monitor the latest comments added to my website so i don't have to browse through 10,000 pages to see the latest comments.
I am also wondering if i will be able to delete comments by other users ? How can facebook tell that i am the webmaster of the page ? If some user leave nasty comments on one of the pages i want to be able to delete them
Facebook's Graph API allows you to query for Facebook data, including comments. It's pretty easy to use but does require a bit of code to make web requests, parse JSON, etc. You can pass in filters, such as only wanting comments after a certain date, which makes querying for "new comments" simple.
The API will return all comments (even those deleted by you; afaik there is no way to tell whether a particular comment has been deleted). The results are returned in pages, so importing a lot of comments can take a bit (as you need multiple round-trips). Also, there is no way to use the API to delete posts - this has to go through the Facebook web pages (or some other means I don't know about).
The documentation pages are pretty exhaustive and will explain how to get started.
Hello if you want to add face book comment box in your website . then just go to face book plugin's and copy the comment box (CODE) .
now open your website admin penal . if your website created in blogger then go to layout . if in other setup. then go to plugin's . you see some layout hear add your code in (top down ) bar .
if you doesn't understand then 2nd way.
go to website and open your dashboard now go to website template . now edit the template .
now you see some codes in new tab . scroll down and put your cods in HTML Body place .
i think you understand : for more shahzebraza425#yahoo .com / www.megaphotocompetition .com /
www.shahzebraza .tk / www.wuwsoftware .tk

How to define what will be inserted in share message?

I have an app with blog records per each user. I have add share button to my app, to give ability to post interesting blog records to users time line or to send to other user. But in default it takes image and text for share as it wants and not always correctly. So I find out that it can be dirven by meta tags (using for example "image" property to set image for share dialog). That's work ok on main page (where I'd like to make ability share with whole application), but on pages of blog records I cann`t customize it. meta tag should be in , but all info (short text and image of blog post) I get later in body, so I can insert it. How can I manage with this? Or may be there is another way to share content with?
What blog engine are you using? If it is a wordpress - try this plugin http://wordpress.org/extend/plugins/facebook-share-new/ from offician facebook docs http://developers.facebook.com/docs/. Otherwise I'd suggest to find a facebook plugin for your blog engine using google and install it.

Multiple Facebook Like Buttons Same Page URL

I want to have multiple Facebook Like Buttons on a single page, all pointing to the same URL. My understanding of the Like Button is that you are liking the URL of the page. But, say for example I have a page with several product attributes, maybe a t-shirt in different colors (Red, Blue, Green, etc.). Each of these colors does not have it's own URL.
Is it possible to like the same URL multiple times? Person likes Red Shirt, Person Likes Blue Shirt, etc.
I attempted to do this with hashtags, yet this did not work. Initial thoughts were to dynamically change the Open Graph Meta tags via Javascript, but A) that doesn't combat the issue of the same URL, and B) that would only work assuming the Facebook API pulls the information from the Meta tags immediately after the click, and not on initial page load or with a separate remote call.
Any ideas?
NOTE: I can not append a query string to the url (i.e. mysite.com/t-shirt?color=red )
You should really consider creating a single page for every product.
This will bring you additional benefits:
- images and product links in the news feed;
- much better seo for the single product;
- much better seo for your website.
Are you using a cms?
EDIT:
There are a few examples if you google it. But all of them require you to at least create a very basic html page. It's easy and fast.
You can try being more specific about your situation if you need better help.
The only way to do this is dynamic. It uses php. So the address for every button will be the redirecting to the php... something like this:
For the tShirt red:
http://www.yourDomain.com/tshirt.php?color=red
For the tShirt blue:
http://www.yourDomain.com/tshirt.php?color=blue
Put every address in the like button href-param
This work for me every time that i used for multiples Facebook's like buttons.