I tried for over 10 hours to setup a Google's pubsubhubbub feed (manual + php), but it's not working. Here is what I did so far:
Published 'buystreamme.blogspot.de/feeds/posts/default'
visited pubsubhubbub.appspot.com/subscribe
- Callback URL: http://buystream.me/endpoint.php
- Topic URL: http://buystreamme.blogspot.de/feeds/posts/default
- Verify type: Asynchronous
- Mode: Subscribe
- No Verify Token, HMAC Secret and Lease Seconds
My endpoint.php looks like this:
<?php
if (isset($_GET['hub_challenge'])) {
file_put_contents('verification.txt',"verified");
header('HTTP/1.1 204 "No Content"', true, 204);
echo $_GET['hub_challenge'];
exit;
}
else {
$xml=file_get_contents("php://input");
file_put_contents('endpoint.txt',$xml);
}
?>
What (not) happened?
- endpoint.php is called after subscription and 'verification.txt' is properly created.
- Then calling 'Subscription Details' the state of the feed stays 'unverified'.
- Then creating a new post in my test blog, the callback file 'endpoint.php' isn't called (no output is created).
What am I doing wrong?
- The feed is a test feed, has no subscribers.
- The hoster is one.com, anything block the call?
Hopefully somebody can help me. I don't see the error and other search results did not help me :(
Thank you very much,
Thomas