Syncing comments between Facebook and Wordpress - facebook

I'm working on implementing a two-way sync for a website that started as a Facebook fan page years ago and now is going to be run primarily off site.
Right now here's the process I'm using:
Import Posts + Comments from the Graph API. Posts are stored as Wordpress posts, comments are stored as Wordpress comments and some additional data such as Facebook Post ID or Post Author are stored in the post meta.
I've created a second submission form (only admin can submit posts from Wordpress site) that uses the Graph API to post directly to the fan page, then run the importer so that when the post is first entered into the database, it already has it's FB_POST_ID attached.
Comments from Facebook are easily updated and added to Wordpress. FB-Connect allows Facebook users to login and comment on the Wordpress but those comments are not synced with Facebook as I can't attach a user comment to a Facebook post via the Graph API (I can't control other users).
Has anyone run into anything similar or have other ideas for how I could achieve a "two-way" sync? (Quotes as my current setup is technically one-way that mimics two-way. New posts bypass Wordpress then get synced from Facebook).

This question is a bit old, but I actually got here from the official Facebook comments plugin page so I'm answering.
There is a plugin called WP-FB Comments
It's working fine, you can read my experience with it on my blog
(currently trying out Livefyre so you wont see it in action)

I'm working on a similar 2-way sync project. There isn't a way to sync comments (at least none that I can find). The way this has been accomplished is to create a new Facebook application and thus you comment thru the app, not Facebook's native comments, e.g. WPbook. Obviously, it's not ideal.

Wordbooker is another plugin that can accomplish what you're looking for -- when someone posts on Facebook, the comment is imported into Wordpress, and when someone comments on Wordpress, the comment is exported to the Facebook post too. The developer is fairly responsive if you have any issues setting it up.

Related

Facebook Mentions on a Facebook Page with Graph API

Has anyone had success with a mention of a FB Page via the Graph API? I'm trying to have one page mention another posting via the Graph API.
I have permissions: "pages_read_engagement" and "pages_manage_posts".
Have tested using FB Pages I'm the admin of with an approved app I'm admin of. Also these Pages are over 6 months old. Also using a real user (mine) and not a test user.
Have posted with #[Page Id], #[Page Name], #[Page ID:Page Name], and #[Page Id:1:Page Name]
Made sure in the Page setting mentions by others is allowed.
Using Facebook SDK version 11.0
and the post always has the mentioned removed.
For example "This is great #[109904187850644]"
posts as "This is great"
The only time mentions show is when the Page mentions itself.
For reference:
https://developers.facebook.com/docs/features-reference/page-mentioning
Related question but using version 2.1 from 7 years ago: Mention Facebook Page in Page API Post
Any thought on the issue? Permissions, way posting, etc?
I have done this recently so I hope I can help you out.
To me it sounds like while you have the required permissions you are missing the actual Page Mentioning Feature. As described on the Page Mentioning Reference the Feature is required to #mention other Pages this is why mentioning the posting Page itself works.
To get authorization to use said feature you have to do an App Review.
Additionally you might want to read up on the differences between Permissions and Features.
From my experience there is no way to test out any functionalities requiring a Feature without doing an App Review because the Graph API will not return any useful data even in development mode while you can test out any permissions without having to do an App Review before.

Mirroring Facebook comments on website using Disqus comment system

I read about the possibility to mirror Facebook comments. The idea is that when you share a link from your website to your Facebook page, comments on your webpage will also appear as comments on your Facebook post and vice versa. https://developers.facebook.com/products/social-plugins/comments/
I'm wondering if it's possible to do the same thing using the Disqus comment system? That means for any Facebook post that is a link to my website, is it possible to show the comments on that post on my website too using the Disqus comment system?
I know it's possible with LiveFyre but I don't want to switch my comment system ...
No, that is not possible. The Facebook Comment Mirroring uses the Facebook Comments plugin. So the comments on your site, using the plugin, will also appear on the Facebook Post that the publisher has shared (and linked via a special API).
It is not possible to make the comments using the Disqus plugin appear on the Facebook post. They don't support that special integration.

Facebook Comment plugin for website not updating in realtime

I thought the Facebook Comment Plugin was supposed to show all comments, but it doesn't update comments in real time and says "No recent comments". I know there were comments posted on a web page on my site, just a few minutes ago.
Is there any another way to see all Facebook comments posted on my website, instead to go to other web page?
That is the only area to see all comments from a site.
To see a particular URL you can use this API call
You can check this using https://graph.facebook.com/?fields=og_object{comments}&id=YOUR_URL

Facebook comments / permanent link

I had setup my website to use Facebook comments (using https://developers.facebook.com/docs/plugins/comments/) and was all working fine.
Unfortunately, my domain name expired and was snapped up by a domain parking company before I renewed it. I purchased a new domain name (the same, but .net instead of .com) and setup the website.
I have put in the same code as the previous site, and the comments do appear (because the old url is in the code), but on facebook profiles, the links are broken because they point to the old site (.com).
I can swap every .com for .net in the facebook code to get the links in Facebook working again, but this will mean I loose all my comments.
I would like to know if there is anyway of asking Facebook to move the comments associated with the old URLs to the new URLs, because I guess this is the only way of keeping my comments and making the links in facebook.com work (linking back to my new site).
Any info appreciated, I know this may not be a coding issue but it seems to be the best place to ask. I have seen similar posts, but they still have access to their old pages.
Many thanks!
As far as I know; You can retrieve the comments made on your old domain, but you will not be able to import them as regular facebook comments.
Instead, you can use a tool like disqus, to export the comments you retrieve from facebook.
To retrieve the comments, use one of the following methods:
1- Using facebook graph API
https://graph.facebook.com/comments/?ids={YOUR_OLD_DOMAIN_URL}
2- Using facebook FQL
Then, use this post to help you exporting the comments to disqus.
Hope this helps.

How to merge comment stream on Facebook events and my own website

I have a website that allows people to post events and it automatically posts their events to facebook if they so choose. I also integrated facebook comments on the event pages on my website.
Is it possible to merge the comments that people leave on my website's event pages with the comments that people leave on the facebook event page that was automatically made for them? I can't seem to find any documentation on this.
Edit: Just to clarify: The comments on my website are done via the facebook-comments API, they are not a module of my application.
Adding a separate answer, as after clarification it's significantly different.
If you want to basically have the wall of your event show up on your website, you can use the Event API to pull in wallposts and display them. To be able to post to that wall, you would have to do some custom coding to authenticate the user with publish_stream permission and then have a form on your site that would post to the event's wall, as noted in the post section of the above link.
Someone may have done this already and put code out there, but I doubt there is an easier way to get your ideal situation up and running. This use case isn't as automagic as the comments box, unfortunately.
If you're just looking to spread your events socially, however, the comments box will post to the commenters' walls with a link to your event page, which can then in turn point them to the Faecbook event. You might be able to use the Facebook event's URL as the URL for your comment box on the website, so it would just post a link directly to the Facebook event, but I'm not sure on that one.
I looked at this in my app, and we ended up deciding to just maintain separate streams. This is because it's only a one-way integration - you can get comments from Facebook via the Graph API and format them on your own website, in-line with your website comments, but there's no way to push comments from your website up to Facebook.
You could, if you wanted, just use the Facebook comment form for all comments - this has been done by big sites such as TechCrunch, and is effective, but it requires users to have a Facebook, AOL, Yahoo, or Hotmail account. Whether you want to do that or not depends on your preferences and userbase.
there a tool that combines comments form different pages or different sources
Check https://feedgun.com which works on pulling comments from different sources like YouTube videos, existing wordpress sites, facebook comments plugins and even DIsqus account and combine them all together and publish them on any of your webpages, and it all works automatically once you set them where to pull and where to publish.