-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Callback function doesn't fire when including Twitter #194
Comments
if callback is not firing could be a problem that twitter not collect nothing and/or nr. of post collected are < of max post you specify. |
Less than the max number of posts makes sense, thanks. I'll have a look at your fix. |
@HartLarsson I tried using your version but the callback function still doesn't fire unless I remove Twitter. It shouldn't be a big deal, I think it's only because the Twitter account only has 3 posts in it :-) |
can you provide me your sample page so i can debug? |
Not really, I'm developing locally. I'm think the problem will go away once I have more than 3 tweets on that account. |
no, even with one tweet only, it works. so the problem is not on the js. |
Here is the JS that powers the social feed (names have been changed to protect the innocent):
And as I've already mentioned, the final callback function only triggers when I comment out the Twitter section entirely. This is the HTML, which seems to work fine regardless:
The social feed template uses LI tags to enclose each post. |
@HartLarsson when I set the Twitter limit parameter to less than the amount of tweets available in the timeline, the callback function executes. There are only 3 tweets on my timeline, when I set the limit to 2, it all works fine. |
this thing have no sense really, looking the piece of code that calculate the ammount of feed to load:
must work! |
I added the line:
And it returns the correct number, which is the limit option for Twitter (above). If I set the Twitter limit to a number (e.g. 20) higher than the actual number of tweets in the timeline (currently 7) then the callback never executes. Which is fine, I'm sure the author never imagined a scenario like this. |
is strange must return 7, the length of the feed recovered by twitter and not 0 (the limit you put). |
Honestly I just made a twitter account specifically for testing. It's free and apparently it's the correct thing to do since Twitter doesn't have a sandbox mode. Just try that, then you have a Twitter timeline with nothing in it. |
There's a PR addressing this: #173 |
I can access Instagram and Facebook and the callback function will execute. But when I add Twitter, or even just access Twitter by itself, the callback function never runs.
The text was updated successfully, but these errors were encountered: