Steps required to reproduce the problem I have post the article data and it returns error. Expected Result Success Actual Result array(1) { ["error"]=> string(58) "Failed connect to graph.facebook.com:443; No route to host"
$news_content = $this->format_content($news_param->articls);
$transformer->transformString($instant_article, $news_content, 'utf-8');
try {
$status['success'] = $ia_client->importArticle($instant_article, $is_published);
} catch (Exception $e) {
$status['error'] = $e->getMessage();
}
and facebook instant article using: https://github.com/facebook/facebook-instant-articles-sdk-php
Reply from Dig:
sh-4.2# dig graph.facebook.com
; <<>> DiG 9.9.4-RedHat-9.9.4-50.el7_3.1 <<>> graph.facebook.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60775
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;graph.facebook.com. IN A
;; ANSWER SECTION:
graph.facebook.com. 604800 IN A 173.25.5.11
;; AUTHORITY SECTION:
com. 604800 IN NS .
;; Query time: 0 msec
;; SERVER: 127.0.0.11#53(127.0.0.11)
;; WHEN: Mon Mar 12 18:49:28 UTC 2018
;; MSG SIZE rcvd: 76
I think I should mention that this is running on a docker LAMP stack.