I will try to explain this to see if anyone could have a clue. We cant figure out the problem since months and it is driving me crazy.
We have a site with a custom CMS developed. We use Varnish to cache articles. If you're not logged in, you should see the cached article by Varnish. If you're logged in, you should see the live article.
We have a feature to program the publishing of the article. So, maybe we write an article, and set to publish tomorrow at 9am. When is published, a cached version of the article is created by Varnish.
The problem is that after the article is published, Facebook (we dont understand why) is saving the 404 Open Graph data. It is like Facebook cant reach the cached article, or maybe is trying to access it before the cached version is created (maybe beacuse we added the Facebook Comments plugin and it is calling Facebook to retrieve the comments of the URL that is not still cached?)
I'm not sure if the problem is clear, but we are really lost and can't fix it. All the scheduling script is uselss if once the article is published, no one can share it on Facebook because it has the wrong Open Graph data (from the 404)
Related
I have a website which I decided to migrate, but I haven't changed the URL's, yet the Facebook (https://developers.facebook.com/tools/debug/sharing/) complains that This URL hasn't been shared on Facebook before.
I shared more than 1000 posts more than one year, and now I need to re-scrape all the URL's to make it "shareable" again. I've read some sources where I've been told to put old URL as canonical, but the problem is, that the URL's are just the same as before.
Does anyone know, where's the problem, and how to solve it?
Okay, I've figured it out thanks to this:
https://gist.github.com/FrostyX/81d58222d1e835e24013
Basically it's just send a post request from the server to https://graph.facebook.com/ so the source is scraped once again.
Wondering if anyone out there has a clue if this is possible: I run a large international site that often schedules blog posts in advance, for example, when it's 2am my time, it's 8am somewhere in the world and we want to have a blog go live then. We simultaneously promote via FB and other social sites...scheduling those as well.
Unfortunately, because the blog is unpublished, the FB schedule scrapes "Access Denied" info and this stays sticky, even after the blog becomes live. Thus, currently, I have to manually rescrape at 2am using the FB /tools/debug URL. Not ideal.
We can't publish the blog early, as often the info is sensitive and we don't want something leaking out. Is there any way to either force a FB rescrape when a blog is published OR can I set up the FB share with the right data in advance, despite the page being "Access Denied"?
Note: I tried the obvious, which is to publish the blog for a few seconds, scrape the right info, then unpublish. That works, but we end up with the blog live in the system longer than we want because of extensive load caching. It's not practical to do this each time we post a blog.
I don't have any code to add here because this is a process question, but I'm hoping there's some code I can ADD to the page, something that will "ping" the FB rescrape when the blog switches from unpublished to live.
Thank you in advance for any help.
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.
I added open graph meta data to all the articles in a site, however, when I attempt to post an article link on Facebook, the meta information isn't loaded.
Then, when I insert the URL into the debugger, it works, both within the debugger and when posting regularly on Facebook.
This issue seems to have been addressed in the past, in this question. That question pertains to a rails environment where the application couldn't handle multiple http requests at the same time. The issue was solved by handling all Facebook API requests in the background.
What's the simplest fashion in which I could accomplish this in a PHP environment running Wordpress?
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.