Okay I might be wrong, but I'm getting almost everything working, it posts to Facebook on 'new content saved rule' triggered. But it gives URL with title Page Not Found, but the URL does work when clicked.
But if you go to your website's logs, it shows that before every new content created, an anonymous tried to visit a page that does not exist aka same page you are creating.
So as I understand for some reason if you create new page with node/1, before it's saved, Facebook API visits your site for node/1 and since it does that before the content was saved, Drupal logs bounce back 'Page not found' error and then Facebook API pulls that title to the Facebook post.
As you can see the node got created only after Anonymous already tried to visit the URL.
My Rule is set to 'After content saved/created'.
Comment | File | Size | Author |
---|---|---|---|
Recent log messages hello world.png | 7.83 KB | vibrasphere |
Comments
Comment #2
vibrasphere CreditAttribution: vibrasphere commentedComment #3
sarathkmI am facing similar issue right now with facebook showing 404 pages but works when clicked and goes to the page. This has been reported in stackexchange (here) last year by someone and tried using rules scheduler so that it post after sometime but with no success as it does has authentication issue with Facebook.
I am looking solution for the same. My Problem
Separate rule for updating works fine.
If you have solution please do share.
Comment #4
sarathkmOk thing got started working for me.
Schedule rules to rule after few minutes delay to post to facebook and we get the correct result.
Solution on stack exchange (well not exact solution)
Comment #5
guvser CreditAttribution: guvser commentedSame problem here.. worked perfect until July 18.
Comment #6
sarathkmI have seen same problem in some other websites too. It seem facebook is crawling data faster than the time taking it to get published.
Comment #7
WebWalker3D CreditAttribution: WebWalker3D commentedfollowing - also have same issue. FB hits twice before the content is even published.
Comment #8
guvser CreditAttribution: guvser commentedPossible workaround that worked for me:
I re-created the rules settings in "Rules Links" module, which inserts a button on the newly created node. By clicking, the rule is activated and the node is pushed out on facebook. It obviously requires a manual action from the editor once created, but works.
Comment #9
lazzyvn CreditAttribution: lazzyvn as a volunteer commentedcan you guide me clearly please. i have same issue.
Can you share export your rule please
edit : i got here
https://drupal.stackexchange.com/questions/193399/nodeurl-token-not-retu...
and
Comment #10
styrbaekI'm using rules schedule to get by this problem.