{"id":319,"date":"2009-03-21T10:41:23","date_gmt":"2009-03-21T16:41:23","guid":{"rendered":"http:\/\/thepizzy.net\/blog\/?p=319"},"modified":"2011-03-01T14:21:52","modified_gmt":"2011-03-01T20:21:52","slug":"tweetsuite-wordpress-plugin-pingfm-preview","status":"publish","type":"post","link":"https:\/\/thepizzy.net\/blog\/2009\/03\/tweetsuite-wordpress-plugin-pingfm-preview\/","title":{"rendered":"TweetSuite WordPress Plugin + Ping.fm (Preview)"},"content":{"rendered":"<p>A couple weeks ago, I found out that <a href=\"http:\/\/twitter.com\" target=\"_blank\">Twitter<\/a> had a <a href=\"http:\/\/search.twitter.com\" target=\"_blank\">Search feature<\/a> that showed real-time tweets for a keyword. I gave it a little thought, considered what it would take to actually write the software &#8211; and then wised up, and decided to see if someone already did the hard work.<\/p>\n<p>Sure enough, <a title=\"@danzarrella\" href=\"http:\/\/twitter.com\/danzarrella\" target=\"_blank\">Dan Zarrella<\/a> over at\u00c2\u00a0<a href=\"http:\/\/danzarrella.com\/\" target=\"_blank\">danzarrella.com<\/a> had. He wrote one for <a href=\"http:\/\/danzarrella.com\/tweetbacks-beta.html\" target=\"_blank\">Tweetbacks<\/a>, and then expanded on it with <a href=\"http:\/\/danzarrella.com\/beyond-tweetbacks-introducing-tweetsuite.html\" target=\"_blank\">TweetSuite<\/a>. So I gave them a shot.<\/p>\n<p>I started with Tweetbacks on the <a href=\"http:\/\/freeformfrog.com\/blog\" target=\"_blank\">FreeformFrog.com Blog<\/a> and everything seemed to be working fine &#8211; until one day when the Tweetbacks stopped. It just stopped finding them &#8211; even though I knew they were getting tweeted &#8211; because I was using <a href=\"http:\/\/ping.fm\" target=\"_blank\">Ping.fm<\/a> to syndicate my blog posts to the appropriate social networks.<\/p>\n<p>I gave it a couple weeks, and then decided I was going to fix it. I was tired of not having my TweetBacks working &#8211; especially during my efforts pushing a Social Networking campaign at job.<\/p>\n<p>So, I added @danzarrella, and asked&#8230;<\/p>\n<blockquote><p><span class=\"entry-content\">@<a href=\"http:\/\/twitter.com\/danzarrella\">danzarrella<\/a> do you have plans to integrate ping.fm posting in TweetSuite? If not, mind if I take a crack at it?<br \/>\nfrom @neotsn at\u00c2\u00a0<a class=\"entry-date\" rel=\"bookmark\" href=\"http:\/\/twitter.com\/neotsn\/status\/1350750034\"><span class=\"published\">4:32 PM Mar 18th<\/span><\/a> from web<\/span><\/p><\/blockquote>\n<p><span class=\"entry-content\">A few minutes later, I got a response&#8230;<\/span><\/p>\n<blockquote><p><span class=\"entry-content\"><span class=\"entry-content\">@<a href=\"http:\/\/twitter.com\/neotsn\">neotsn<\/a> go to town<br \/>\nfrom @danzarrella at <\/span><span class=\"meta entry-meta\"><a class=\"entry-date\" rel=\"bookmark\" href=\"http:\/\/twitter.com\/danzarrella\/status\/1350761852\"><span class=\"published\">4:34 PM Mar 18th<\/span><\/a> from\u00c2\u00a0<a href=\"http:\/\/www.tweetdeck.com\/\">TweetDeck<\/a> <a href=\"http:\/\/twitter.com\/neotsn\/status\/1350750034\">in reply to neotsn<\/a><\/span><\/span><\/p><\/blockquote>\n<p><span class=\"entry-content\"><span class=\"meta entry-meta\">Excellent&#8230;now I had his blessing to hack his codes. And so I have&#8230;<br \/>\n<\/span><\/span><\/p>\n<p><span class=\"entry-content\"><span class=\"meta entry-meta\"><!--more--><br \/>\n<\/span><\/span><\/p>\n<h2><span class=\"entry-content\"><span class=\"meta entry-meta\">The download is coming soon<\/span><\/span><\/h2>\n<h3><span class=\"entry-content\"><span class=\"meta entry-meta\">I have to get my Ping.fm API Key approved before anyone but me can install the plugin.<br \/>\n<\/span><\/span><\/h3>\n<p><span class=\"entry-content\"><span class=\"meta entry-meta\">And now I present to you a general overview of what I wanted to accomplish, and how I did it. (<strong>Please note, this is a GENERAL overview with some examples<\/strong> &#8211; it&#8217;s not meant to be a how-to, so don&#8217;t try to just copy\/paste the samples &#8211; there is much more to do than can be explained here). Let&#8217;s get started&#8230;<\/span><\/span><\/p>\n<h2><span class=\"entry-content\"><span class=\"meta entry-meta\">Objectives&#8230;<\/span><\/span><\/h2>\n<ol>\n<li><span style=\"text-decoration: underline;\"><strong>Make it post through Ping.fm<\/strong><\/span> &#8211; I syndicate all my stuff through <a href=\"http:\/\/twitterfeed.com\" target=\"_blank\">twitterfeed.com<\/a> and it pushes everything out through Ping.fm for me. Upon further investigation, I noticed that TweetSuite used its own publishing code to push out the updates &#8211; after it created its own shortened urls and attached them. So of course it would never find my updates &#8211; it didn&#8217;t know what urls to search for, because it didn&#8217;t create them.<\/li>\n<li><span style=\"text-decoration: underline;\"><strong>Make it find my tweets that were pushed through Ping.fm<\/strong><\/span> &#8211; After realizing that it stopped searching for blog titles and started searching for the shortened urls as the unique identifier on the web, I realized that I needed it to create my urls and push them out with my Ping.fm update text. That was the only way to let TweetSuite know that there were tweets out there about my blog, and obtw here&#8217;s the link.<\/li>\n<li><span style=\"text-decoration: underline;\"><strong>Clean up some of the things that were a little messy<\/strong><\/span> &#8211; Once I got poking around in the code, I noticed that it some parts of it were written a little redundantly, and in order for me to maintain understanding of what was going on, I needed to clean it up a little.<\/li>\n<\/ol>\n<h2>Let&#8217;s Code&#8230;<\/h2>\n<p>Well, for starters, to accomplish #1, I had to write a function that would validate the user&#8217;s app key with Ping.fm:<br \/>\n{code type=php}<br \/>\n\/* [[Neo]] *\/<br \/>\n\/\/BEGIN Ping.fm functions<br \/>\nfunction pingfm_verify() {<br \/>\n\t\/\/ request app key verification<br \/>\n\t$ch = curl_init();<br \/>\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);<br \/>\n\tcurl_setopt($ch, CURLOPT_POST, true);<br \/>\n\tcurl_setopt($ch, CURLOPT_URL, &#8216;http:\/\/api.ping.fm\/v1\/user.validate&#8217;);<br \/>\n\tcurl_setopt($ch, CURLOPT_POSTFIELDS, Array(<br \/>\n\t\t&#8216;api_key&#8217; =&gt; get_option(&#8216;tweetsuite_ping_api_key&#8217;),<br \/>\n\t\t&#8216;user_app_key&#8217; =&gt; get_option(&#8216;tweetsuite_ping_app_key&#8217;)<br \/>\n\t));<br \/>\n\t$output = curl_exec($ch);<br \/>\n\t\/\/ update database with response<br \/>\n\tif (preg_match(&#8216;\/OK\/&#8217;, $output)) {<br \/>\n\t\techo &#8216;\t&lt;strong&gt;Your key has been verified.&lt;\/strong&gt; Your can now post to your<br \/>\n\t\t\t\t&lt;a href=&#8221;http:\/\/www.ping.fm&#8221; target=&#8221;_blank&#8221;&gt;Ping.fm&lt;\/a&gt; account.&#8217;;<br \/>\n\t\tupdate_option(&#8216;tweetsuite_ping_keyVerified&#8217;, 1);<br \/>\n\t} else {<br \/>\n\t\techo (&#8216;&lt;strong&gt;Your key could not be verified.&lt;\/strong&gt;.&#8217;);<br \/>\n\t\tupdate_option(&#8216;tweetsuite_ping_keyVerified&#8217;, 0);<br \/>\n\t\treturn false;<br \/>\n\t}<br \/>\n}<\/p>\n<p>\/\/ END Ping.fm Functions<br \/>\n{\/code}<br \/>\nJust your basic\u00c2\u00a0<span style=\"font-family: 'Courier New'; line-height: 18px; white-space: pre;\">curl<\/span><span style=\"font-family: Georgia; line-height: 19px; white-space: normal;\"> function to contact <\/span><span style=\"font-family: 'Courier New'; line-height: 18px; white-space: pre;\">http:\/\/api.ping.fm\/v1\/user.validate<\/span><span style=\"font-family: Georgia; line-height: 19px; white-space: normal;\"> and pass the api_key and user_app_key to the api, per the <a href=\"http:\/\/groups.google.com\/group\/pingfm-developers\/web\/api-documentation?pli=1#user.validate\" target=\"_blank\">API Documentation<\/a> on <strong>user.validate<\/strong>. Depending on the response, store it to the database, and display the appropriate message.<\/span><\/p>\n<p><span style=\"font-family: Georgia; line-height: 19px; white-space: normal;\">Next, I had to implement the fields to make that happen. We&#8217;ll start with the database&#8230;<\/span><br \/>\n{code type=php}<br \/>\n\/* [[Neo]] *\/<br \/>\n\/\/ADDED:<br \/>\n\tadd_option(&#8216;tweetsuite_ping_api_key&#8217;,&#8217;333333333333333333333333333333333&#8242;);<br \/>\n\tadd_option(&#8216;tweetsuite_ping_app_key&#8217;,&#8221;);<br \/>\n\tadd_option(&#8216;tweetsuite_use_ping&#8217;,0);<br \/>\n\tadd_option(&#8216;tweetsuite_ping_keyVerified&#8217;,0);<br \/>\n\/\/END ADD<br \/>\n{\/code}<br \/>\nThis sticks those fields into the wordpress database table &#8220;wp_options&#8221; where all the config values go. My developer&#8217;s api key, a blank user application key, a field for the checkbox &#8220;Do you want to use Ping.fm?&#8221; and one for whether or not the user_app_key successfully verified.<\/p>\n<p>Then I create the user interface for those fields (as well as rearrange the rest of the fields since these have to flow right to make sense&#8230;<br \/>\n{code type=php}<br \/>\n\/* [[Neo]] *\/<br \/>\n\/\/ADDED:<br \/>\n\tupdate_option(&#8216;tweetsuite_ping_app_key&#8217;, $_POST[&#8216;tweetsuite_ping_app_key&#8217;]);<br \/>\n\/\/END ADD<\/p>\n<p>\/\/tweetsuite_use_ping<br \/>\n($_POST[&#8216;tweetsuite_use_ping&#8217;]) ? update_option(&#8216;tweetsuite_use_ping&#8217;, 1) : update_option(&#8216;tweetsuite_use_ping&#8217;, 0);<br \/>\n{\/code}<\/p>\n<p>That part allows the database to be updated with the data from the fields below&#8230;<br \/>\n{code type=html}<br \/>\n&lt;!&#8211; \/* [[Neo]] *\/ &#8211;&gt;<br \/>\n&lt;!&#8211; BEGIN ADD &#8211;&gt;<br \/>\n&lt;tr valign=&#8221;top&#8221;&gt;<br \/>\n\t&lt;th scope=&#8221;row&#8221;&gt;Ping.fm :: Use Ping.fm to publish new posts (via your default method)?:&lt;\/th&gt;<br \/>\n\t&lt;td&gt;&lt;INPUT TYPE=CHECKBOX NAME=&#8221;tweetsuite_use_ping&#8221; &lt;?php if(get_option(&#8216;tweetsuite_use_ping&#8217;)) { echo &#8220;checked&#8221;; } ?&gt;&gt;<br \/>\n\t\t&lt;br \/&gt;&lt;b&gt;[&#8220;Send a Tweet when you publish&#8221; is required for this to work]&lt;\/b&gt;<br \/>\n\t&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;tr valign=&#8221;top&#8221;&gt;<br \/>\n\t&lt;th scope=&#8221;row&#8221;&gt;Ping.fm :: Your Ping.fm &lt;a href=&#8221;http:\/\/ping.fm\/key\/&#8221; target=&#8221;_blank&#8221;&gt;Application Key&lt;\/a&gt;:&lt;\/th&gt;<br \/>\n\t&lt;td&gt;&lt;INPUT TYPE=text NAME=&#8221;tweetsuite_ping_app_key&#8221;  value='&lt;?php echo get_option(&#8216;tweetsuite_ping_app_key&#8217;); ?&gt;&#8217; \/&gt;&lt;br \/&gt;&lt;?php if(get_option(&#8216;tweetsuite_ping_app_key&#8217;)) { echo pingfm_verify(); } ?&gt;<br \/>\n\t&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;!&#8211; END ADD &#8211;&gt;<br \/>\n{\/code}<br \/>\nThis is below the checkbox for &#8220;Send a Tweet when you publish a post?&#8221;&#8230;if that is checked, then if you check &#8220;Use Ping.fm to publish new posts (via your default method)?&#8221; and fill out the next field for &#8220;Your Ping.fm <a href=\"http:\/\/ping.fm\/key\/\" target=\"_blank\">Application Key<\/a>&#8221; then it will send your post details on Publish through Ping.fm instead of Twitter itself, appending the tinyurl associated with the post to your Ping.fm message. All this is done by editing the function that sends the tweets&#8230;<br \/>\n{code type=php}<br \/>\nfunction tweetsuite_send($msg) {<br \/>\n\t\/* [[Neo]] *\/<br \/>\n\t\/\/REMOVED:<br \/>\n\t\/\/$prefix = urlencode(get_option(&#8216;tweetsuite_prefix&#8217;).&#8217; &#8216;);<br \/>\n\t\/\/REPLACED:<br \/>\n\t$prefix = (get_option(tweetsuite_use_ping) and get_option(tweetsuite_ping_keyVerified)) ? get_option(&#8216;tweetsuite_prefix&#8217;).&#8217; &#8216; : urlencode(get_option(&#8216;tweetsuite_prefix&#8217;).&#8217; &#8216;);<br \/>\n\t$msg = $prefix.$msg;<\/p>\n<p>\t\/* [[Neo]] *\/<br \/>\n\t\/\/ADDED<br \/>\n\tif(get_option(tweetsuite_use_ping) and get_option(tweetsuite_ping_keyVerified)) {<br \/>\n\t\t$ch = curl_init();<br \/>\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);<br \/>\n\t\tcurl_setopt($ch, CURLOPT_POST, true);<br \/>\n\t\tcurl_setopt($ch, CURLOPT_URL, &#8216;http:\/\/api.ping.fm\/v1\/user.post&#8217;);<br \/>\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, Array(<br \/>\n\t\t\t&#8216;api_key&#8217; =&gt; get_option(&#8216;tweetsuite_ping_api_key&#8217;),<br \/>\n\t\t\t&#8216;user_app_key&#8217; =&gt; get_option(&#8216;tweetsuite_ping_app_key&#8217;),<br \/>\n\t\t\t&#8216;post_method&#8217; =&gt; &#8220;default&#8221;,<br \/>\n\t\t\t&#8216;body&#8217; =&gt; $msg)<br \/>\n\t\t);<br \/>\n\t\t$output = curl_exec($ch);<br \/>\n\t} else {<br \/>\n\t\t\/\/END ADD<br \/>\n\t\t$username = get_option(&#8216;tweetsuite_twitter_username&#8217;);<br \/>\n\t\t$password = get_option(&#8216;tweetsuite_twitter_password&#8217;);<br \/>\n\t\tif(($username) and ($password))  {<br \/>\n\t\t\t$url = &#8216;http:\/\/twitter.com\/statuses\/update.xml&#8217;;<br \/>\n\t\t\t$curl_handle = curl_init();<br \/>\n\t\t\tcurl_setopt($curl_handle, CURLOPT_URL, &#8220;$url&#8221;);<br \/>\n\t\t\tcurl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);<br \/>\n\t\t\tcurl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);<br \/>\n\t\t\tcurl_setopt($curl_handle, CURLOPT_POST, 1);<br \/>\n\t\t\tcurl_setopt($curl_handle, CURLOPT_POSTFIELDS, &#8220;status=$msg&#8221;);<br \/>\n\t\t\tcurl_setopt($curl_handle, CURLOPT_USERPWD, &#8220;$username:$password&#8221;);<br \/>\n\t\t\t$buffer = curl_exec($curl_handle);<br \/>\n\t\t\tcurl_close($curl_handle);<br \/>\n\t\t}<br \/>\n\t\/* [[Neo]] *\/<br \/>\n\t\/\/ADDED<br \/>\n\t}<br \/>\n\t\/\/END ADD<br \/>\n}<br \/>\n{\/code}<br \/>\nThis starts off by swapping out the original <strong>urlencode()<\/strong> function for a conditional statement deciding if this is a ping.fm post or a twitter post. If it&#8217;s a ping.fm post, then we don&#8217;t want to <strong>urlencode()<\/strong> the prefix, because it sticks + signs where there should be spaces in the prefix to the title. However, if we don&#8217;t want to use ping.fm, then don&#8217;t mess with the original code.<\/p>\n<p>Following that, it splits which method we used to post, based on the same criteria &#8211; make sure the checkbox is true for &#8220;tweetsuite_use_ping&#8221; and that the user&#8217;s app key is verified in &#8220;tweetsuite_ping_keyVerified&#8221;. If that&#8217;s the case, then post it through ping.fm &#8211; if any of that is not met, then go ahead and try to post it through twitter. If there is no username and password supplied on the options page, then we just won&#8217;t post anything.<\/p>\n<p>Now&#8230;about the whole $msg &#8211; that part got skipped in the logic of everything. This was the tricky part, for me. Originally, I stumbled across an API Documentation page for the ping.fm method &#8220;url.shorten&#8221; and that was the very thing I needed &#8211; something to grab a ping.fm url, without passing it through ping.fm yet. However, I found out, after much frustration, that this method was mysteriously &#8220;depreciated&#8221; (which should be read as &#8220;edited off the page, and 404&#8217;d when you try to use it). But, I found <a href=\"http:\/\/groups.google.com\/group\/pingfm-developers\/browse_thread\/thread\/e6bf14bd63fdb7df\/e59e3c16424ad20f?lnk=gst&amp;q=url+shortening#e59e3c16424ad20f\" target=\"_blank\">another solution<\/a> in the knowledgebase at Ping.fm&#8230;<br \/>\n{code type=php}<br \/>\nfunction ts_send_tweet($postID) {<br \/>\n\tglobal $wpdb;<br \/>\n\tif(!is_int($postID))<br \/>\n\t\t$postID = $postID-&gt;ID;<\/p>\n<p>\t$table_name = $wpdb-&gt;prefix . &#8220;shorturls&#8221;;<br \/>\n\t$line = $wpdb-&gt;get_row(&#8220;select * from $table_name where postID=$postID&#8221;);<br \/>\n\tif($line-&gt;postID==$postID) {<br \/>\n\t\t\/* [[Neo]] *\/<br \/>\n\t\t\/\/ ADDED: &#8220;*&#8221;.<br \/>\n\t\t$shorturl = &#8220;*&#8221;.$line-&gt;tinyurl;<br \/>\n\t\t$post = get_post($postID);<br \/>\n\t\tif(get_option(&#8216;tweetsuite_send_posts&#8217;))<br \/>\n\t\t\ttweetsuite_send(trim($post-&gt;post_title).&#8217; &#8216;.$shorturl);<br \/>\n\t}<br \/>\n}<br \/>\n{\/code}<br \/>\nThe article said you can prepend a <strong>* <\/strong>to the front of a url and it would not shorten it (in addition to the fact that they said they wouldn&#8217;t re-shorten any URLs 24 characters or smaller). So, I went with the * solution, because we&#8217;re already providing short URLs, but don&#8217;t want to risk the functionality in future updates to allow for custom url shortening services.<\/p>\n<p>And that accomplishes both #1 and #2. We have the TweetSuite posting its updates through the Ping.fm API, and pushing a shortened url out with the post. TweetSuite then becomes aware of this url at publish, and stores it in its database. Then the cron job that runs every 5 minutes searches on any version of the URL that was stored and pulls back all the entries from the search.twitter.com Atom feed &#8211; parses them, and updates the database with them.<\/p>\n<p>The rest of the stuff I did in the plugin was merely cleaning up&#8230;for example, reading the shortened urls from the Atom feed. The original code was:<br \/>\n{code type=php}<br \/>\nif(stristr($tweet, &#8216;http:\/\/bit.ly&#8217;)) {<br \/>\n\tif(strstr($tweet, $bitly)) {<br \/>\n\t\t$add = true;<br \/>\n\t} else {<br \/>\n\t\t$add = false;<br \/>\n\t}<br \/>\n}<br \/>\n{\/code}<br \/>\nBecause the urls are using alphanumeric sequences to track what link is what &#8211; and the url&#8217;s are case-sensitive, it was returning links that were not related to the post. For example, I got <a href=\"http:\/\/twitter.com\/lukebuchanan\/statuses\/1332713478\" target=\"_blank\">someone&#8217;s tweet about Rush Limbaugh<\/a> because the bit.ly url (&#8220;http:\/\/bit.ly\/fyhz&#8221;)was the same letters, but in a different case then my original &#8220;http:\/\/bit.ly\/FyhZ&#8221;. So I changed the order of the search, did it for all the services currently supported, and cleaned up the code a little:<br \/>\n{code type=php}&#8230;<br \/>\nif(strstr($tweet, &#8216;http:\/\/bit.ly&#8217;)) { $add = (stristr($tweet, $bitly)) ? true : false; } else {<br \/>\n&#8230;<br \/>\n{\/code}<br \/>\nThe function<strong> strstr() <\/strong>is <strong>not<\/strong> case-sensitive, and that&#8217;s ok for a search on the domain name &#8211; we want anything that looks close to &#8220;bit.ly&#8221; to return positive. However, once it does, it&#8217;s imperitive that we use the case-sensitive <strong>stristr()<\/strong> function to return a positive result only if the full url matches what we have in the database case-for-case.<\/p>\n<h2>Wrapping up&#8230;<\/h2>\n<p>I made a couple more additions to the code beyond that, some of them required for functionality, some of them for cosmetics. I&#8217;ve submitted my plugin version to Ping.fm to approve it, and take my Developer&#8217;s Key out of &#8220;Pending&#8221; status. Once that&#8217;s done, I&#8217;ll send it off to Dan Zarrella to take a look and see how he wants to move forward. Then I&#8217;ll be able to post the plugin for download (definitely here, but also on the WordPress Plugin directory.<\/p>\n<h2>Continuing on&#8230;<\/h2>\n<p>I have read through the comments on Dan&#8217;s blog from the people, and have taken note of the things that they are asking for. After reading the code, he had already been working on some of the features. There are 5 main ones that people are asking for, and I&#8217;ve already done one of them in this release:<\/p>\n<ol>\n<li><span style=\"text-decoration: line-through;\">TweetThis link opens in a new window.<\/span><\/li>\n<li>AutoUpgrade via WordPress Plugin Directory<\/li>\n<li>Allow customized URL Shortening Services<\/li>\n<li>TweetThis links for pre-installation posts<\/li>\n<li>TweetThis links on the home page.<\/li>\n<\/ol>\n<p>I&#8217;ll be looking more into the other options and see what I can do.<\/p>\n<h2>One More Thing&#8230;<\/h2>\n<p>This post was syndicated through the TweetSuite + Ping.fm plugin \ud83d\ude42 .<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A couple weeks ago, I found out that Twitter had a Search feature that showed real-time tweets for a keyword. I gave it a little thought, considered what it would take to actually write the software &#8211; and then wised up, and decided to see if someone already did the hard work. Sure enough, Dan [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[517,25,11,3,15,515,544,516],"tags":[449,520,207,120,229,152,959,209,519,518,958,144,281],"class_list":["post-319","post","type-post","status-publish","format-standard","hentry","category-pingfm","category-programming","category-projects","category-tech","category-thought_experiments","category-tweetsuite","category-twitter-projects","category-wordpress-projects","tag-beta","tag-dan-zarrella","tag-database","tag-internet","tag-mysql","tag-php","tag-pingfm","tag-site","tag-syndication","tag-tweetbacks","tag-tweetsuite","tag-twitter","tag-wordpress"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_likes_enabled":false,"jetpack_shortlink":"https:\/\/wp.me\/prOO4-59","jetpack-related-posts":[{"id":356,"url":"https:\/\/thepizzy.net\/blog\/2009\/04\/tweetsuite-tweetbacks-and-pingfm-wordpress-plugin-update\/","url_meta":{"origin":319,"position":0},"title":"TweetSuite, TweetBacks, and Ping.fm WordPress plugin (Update)","author":"[[Neo]]","date":"April 1, 2009","format":false,"excerpt":"Well, I sent off my plugin code to Dan Zarrella, and got the Ping.fm developers API Key approved, and got Wordpress.org to approve the plugin, and have been running it on my blog since its original announcement - but have run into a possible issue... My webhost says it is\u2026","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/thepizzy.net\/blog\/category\/tech\/programming\/"},"img":{"alt_text":"twitter.com\/neotsn","src":"https:\/\/i0.wp.com\/thepizzy.net\/blog\/wp-content\/uploads\/2010\/08\/twitter-wordpress-neo12.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":219,"url":"https:\/\/thepizzy.net\/blog\/2009\/03\/pingfm-wordpress-plugin-pingpressfm\/","url_meta":{"origin":319,"position":1},"title":"Ping.fm WordPress Plugin: &#8220;PingPressFM&#8221;","author":"[[Neo]]","date":"March 3, 2009","format":false,"excerpt":"I installed the Wordpress Pluging \"PingPressFM\" to try out using ping.fm to syndicate my blog posting to things like MySpace, Facebook, and my other blogs that I don't normally post regular content to. So, we'll see where this post ends up going, and I'll update it accordingly. UPDATE: Initial response\u2026","rel":"","context":"In &quot;Technology&quot;","block_context":{"text":"Technology","link":"https:\/\/thepizzy.net\/blog\/category\/tech\/"},"img":{"alt_text":"twitter.com\/neotsn","src":"https:\/\/i0.wp.com\/thepizzy.net\/blog\/wp-content\/uploads\/2010\/08\/twitter-wordpress-neo12.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1058,"url":"https:\/\/thepizzy.net\/blog\/2011\/01\/configuring-your-facebook-application-security-settings\/","url_meta":{"origin":319,"position":2},"title":"Configuring your Facebook Application Security Settings","author":"[[Neo]]","date":"January 25, 2011","format":false,"excerpt":"One of the least-checked settings on Facebook, is the permissions you've given every app\/game\/quiz you've ever used with the site.","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/thepizzy.net\/blog\/category\/how-to\/"},"img":{"alt_text":"Facebook Security Logo - Source: allfacebook.com","src":"https:\/\/i0.wp.com\/thepizzy.net\/blog\/wp-content\/uploads\/2011\/02\/facebook-sec-logo1-116x150.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":408,"url":"https:\/\/thepizzy.net\/blog\/2009\/05\/dallas-stars-twitter\/","url_meta":{"origin":319,"position":3},"title":"Dallas Stars Twitter (@dallasstars and @thedallasstars)","author":"[[Neo]]","date":"May 11, 2009","format":false,"excerpt":"What happened to the Dallas Stars Twitter? They removed me from their friend list, and changed everything! If you're asking yourself that question...it's not what you think. Here's what happened - it was all a mistake... The Backstory... Back in the Fall of 2007, @winkydo had an idea to start\u2026","rel":"","context":"In &quot;Projects&quot;","block_context":{"text":"Projects","link":"https:\/\/thepizzy.net\/blog\/category\/projects\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/a1.twimg.com\/profile_images\/421667289\/stars-logo.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":977,"url":"https:\/\/thepizzy.net\/blog\/2011\/01\/how-to-plug-your-personal-information-leaks\/","url_meta":{"origin":319,"position":4},"title":"How to plug your personal information leaks","author":"[[Neo]]","date":"January 17, 2011","format":false,"excerpt":"If you don't know where your personal information could be leaked, you'll never know where to plug it. Here's some of the common holes.","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/thepizzy.net\/blog\/category\/how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/thepizzy.net\/blog\/wp-content\/uploads\/2011\/01\/4199131336_63c0e1d1621-225x300.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":100,"url":"https:\/\/thepizzy.net\/blog\/2008\/01\/twitter-tsn7\/","url_meta":{"origin":319,"position":5},"title":"twitter &#038; tsn.7","author":"[[Neo]]","date":"January 30, 2008","format":false,"excerpt":"With a new My Spot page comes new possibilities. This time around, I'm going to make a concerted effort to actually write in new code and attach a new database backend that pulls from the phpbb database and the users' accounts on the-spot.net.With this new plan, there will be increased\u2026","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/thepizzy.net\/blog\/category\/tech\/programming\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/thepizzy.net\/blog\/wp-content\/uploads\/2008\/04\/Untitled-2.png?fit=400%2C400&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/thepizzy.net\/blog\/wp-json\/wp\/v2\/posts\/319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thepizzy.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thepizzy.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thepizzy.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thepizzy.net\/blog\/wp-json\/wp\/v2\/comments?post=319"}],"version-history":[{"count":31,"href":"https:\/\/thepizzy.net\/blog\/wp-json\/wp\/v2\/posts\/319\/revisions"}],"predecessor-version":[{"id":346,"href":"https:\/\/thepizzy.net\/blog\/wp-json\/wp\/v2\/posts\/319\/revisions\/346"}],"wp:attachment":[{"href":"https:\/\/thepizzy.net\/blog\/wp-json\/wp\/v2\/media?parent=319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thepizzy.net\/blog\/wp-json\/wp\/v2\/categories?post=319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thepizzy.net\/blog\/wp-json\/wp\/v2\/tags?post=319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}