Facebook Sharer.php "The message could not be posted to this Wall." Error
UPDATE: As of 2014-01-16 10:17 (GMT+8), this issue has been fixed. View the bug report.
Got this error message after updating Wordpress plugin for one of the site that I help maintain.
When inspecting the network tab for the ajax request, I saw this error description in the response.
So I did a comparison with the sharer on Techcrunch page.
I noticed the difference is mainly on the attachment section.
Its Facebook sharer permission issue. Seems like Facebook sharer will include og:image tags images as attachment when you have multiple og:image meta tags, and there seems to be permission issue with posting the attachment to user's wall.
This only happen recently. So until Facebook fixes this... nothing much we can do other than limit to only 1 og:image tag on our sites.
Limit to just 1 of og:image. Simple solution that works.
You can try with these sample:
1 image:
https://www.facebook.com/sharer/sharer.php?u=http://vulcanpost.com/statics/html/2014/facebook-sharer-with-1-image.html
3 image:
https://www.facebook.com/sharer/sharer.php?u=http://vulcanpost.com/statics/html/2014/facebook-sharer-with-3-images.html
Your function should be like this:
References:
http://stackoverflow.com/questions/3944268/facebook-sharer-php-how-to-have-multiple-ogimage-tags
Facebook Sharer Error. |
Got this error message after updating Wordpress plugin for one of the site that I help maintain.
Debugging
When inspecting the network tab for the ajax request, I saw this error description in the response.
for (;;);{"__ar":1,"error":1367001,"errorSummary":"Could not post to Wall","errorDescription":"The message could not be posted to this Wall.","payload":null,"bootloadable":{},"ixData":[]}After searching in Google, most people suggest that error 1367001 is due to incomplete URL format. But for my case, the URL is in complete form.
So I did a comparison with the sharer on Techcrunch page.
I noticed the difference is mainly on the attachment section.
attachment[params][images][0]
Conclusion
Its Facebook sharer permission issue. Seems like Facebook sharer will include og:image tags images as attachment when you have multiple og:image meta tags, and there seems to be permission issue with posting the attachment to user's wall.
This only happen recently. So until Facebook fixes this... nothing much we can do other than limit to only 1 og:image tag on our sites.
Solution
Limit to just 1 of og:image. Simple solution that works.
You can try with these sample:
1 image:
https://www.facebook.com/sharer/sharer.php?u=http://vulcanpost.com/statics/html/2014/facebook-sharer-with-1-image.html
3 image:
https://www.facebook.com/sharer/sharer.php?u=http://vulcanpost.com/statics/html/2014/facebook-sharer-with-3-images.html
Solution (For Facebook Wordpress Plugins)
- Open /wp-content/plugins/facebook/open-graph-protocol.php,
- Find "get_og_images" function and add in the following code
if (count( $og_images ) === 1) { return $og_images; // Force only 1 image. }
Your function should be like this:
References:
http://stackoverflow.com/questions/3944268/facebook-sharer-php-how-to-have-multiple-ogimage-tags
Thank you for sharing the video of liquid cooling for computers. Keep sharing.
ReplyDeleteSkype Tapatalk users can´t see the videos. How can I
ReplyDeletedo to solve it? I saw this thread, but I am ...
Skype
Technical Help