I am building a website that's displaying a couple Facebook photo albums, which I'm retrieving with FQL. I'd also like to add the comments plugin and all existing Facebook comments for each photo.
When I add this:
<div class="fb-comments" data-href="[some facebook photo url]" data-num-posts="4" data-width="300"></div>
it isn't including all the comments already made about this photo on Facebook. Likewise, when I make a comment using my site's comment box, it doesn't show up in Facebook under that photo.
I'm guessing that the comments plugin doesn't have that functionality: To sync my site's comments with Facebook comments when using a Facebook url?
Can anyone point me in the right direction?
Comments don't come with the photos by default. You have to get them with graph.facebook.com/PHOTO_ID/comments.
Related
When I post as my Facebook page persona, chronoglimpse, I don't want my own name to appear at the bottom in the news feed.
I've searched through Facebook's docs but I have had no luck finding an answer. Can adding my name be turned off?
chronoglimpse Facebook page
Link to target post, included for those interested only.
I think Facebook is grabbing this information from the meta tags on the shared link:
A little while ago, I built this:
http://www.littlebray.co.uk/photos.aspx
It's kind of an off-Facebook partial replica of a Facebook photo album gallery, the photos in the gallery section are all pulled from Facebook albums on the Page for Little Bray (fb.com/littlebray) enlarging them gives you a kinda full screen view of them with commenting facilties on the right margin, just like Facebook.
You'll notice that, whilst this comment section looks a bit like a Facebook plugin, it isn't, and the reason for this is that if I used Facebooks Comments Plugin, when a user comments on a photo on the website, or comments on the same photo (remembering the photos come from the same source), it will create two different streams of comments, one shown on FB and one shown on the website.
With my method, any comments posted either on the website or FB will appear in both places as they're al directly injected into the FB graph relating to the object ID of the photo.
A bit later on, I created another, similar image gallery but used Facebooks Social Plugin "Comments" in the right hand margin to comment on photos. The difference here though was that these photos were lcoally hosted by the website and not already Facebook album objects, so this other website is the only source for these images and thus creating FB objects when commenting via a URL is fine.
BUT... it got me thinking, is my first example just a lot of work, is it possible to use Facebooks own Social Plugin to post comments on an object which already exists on Facebook in that way?
I tried pasting a graph URL https://graph.facebook.com/FB_OBJECT_ID into the Comments example on Facebooks Social Plugins page from a status update of mine, but nothing showed.
Any ideas?
EDIT ---
I have discovered I am not alone in asking this question:
Using social plugins for pre-existing Facebook posts
Load comments from open graph object into Facebook comments social plugin
Neither of those have satisfactory answers though. Perhaps I just need to improve my own code and make my own plugin.
At this time the comments plugin can not be used in that way.
We would like to use the Facebook Comment plugin (or something similar) on a website. The photos are being pulled in from Facebook to our site (built in PHP). We would like to enable commenting on a particular photo and post the comment back to Facebook. Addtionally, if a comment is made on Facebook, we would also like for the comment to display on the webpage.
From the website, we have only been able to get the comment to apply to the webpage, but not to the photo itself. Thus the comment posts on facebook with a link to the webpage, but does not display the individual photo.
Does anyone know how to successfully post comments on a particular photo from a webpage?
Using the Graph API, just do an HTTP POST to https://graph.facebook.com/PHOTOID/comments?access_token=ValidUserAccessToken with the correct parameters specified (such as message) as well as a user access token with the correct permissions specified.
See the comments connection of photo at https://developers.facebook.com/docs/reference/api/photo/
I have a forum that made it by MYBB system and every photo in every post of my Forum just shown for Registered User, and when I share it in Facebook it doesn't show post photo in thumbnail!!
I want to know how can I register Facebook Crawler for this kind of thumbnail ?? or is there any way to make it shown for Facebook??
You need to
Add the Open Graph meta tags to your pages (see https://developers.facebook.com/docs/opengraph/ )
Ensure that the tags are available to Facebook's crawler (which won't be logged in to your site),
Check what facebook is detecting on your page using the debug tool ( http://developers.facebook.com/tools/debug )
According to Facebook, comments made through the comments social plugin will post to the user's wall. This is working, but comments subsequently made in reply to such a post on Facebook.com (as shown in this FB dev video: http://csull.in/eMMsDF) don't show up on the site with the comments plugin. I have tried everything I can think of, and while using the iFrame feedback method does work, the fb:comments method does not. Any ideas?