Browsing the archives for the Twitter category

Twitter 101: Store Tweets with MongoDB

in Drivers, PHP, Twitter

TweetTwitter has been changing their API and features so quickly that even planning out a structure to store tweets can be quite difficult. Luckily (compared to other, relational DB’s) MongoDB makes that much less of a problem with its schema-less documents. To start things off let’s a get a few prerequisites checked off our list … [...]


MongoDB and 64-bit Integers in PHP

in PHP, Twitter

TweetIf you’ve ever needed to work with PHP’s MongoDB driver and large integers (which Twitter and Facebook use for id’s) you might have run into a problem … Derick Rethans documents this problem at length at his post here … [A] Facebook UserID … [uses] a “64-bit int datatype”. Unfortunately, the MongoDB PHP Driver only had support for 32-bit [...]