-
I posted to delicious.com
The LinkedIn Blog » Blog Archive LinkedIn Platform: Open for Business «
http://blog.linkedin.com/2009/11/23/linkedin-platform-launch/
December 1 2009, 2:23pm | Comments »
-
I posted to delicious.com
FlashPad » Blog Archive » Experimenting with new Adobe Social service library
- Tags:
- as3
- socialnetworking
November 3 2009, 1:35pm | Comments »
-
I posted to delicious.com
Welcome to HootSuite - The Professional Twitter Client
November 1 2009, 7:33am | Comments »
-
I posted to delicious.com
Adobe Labs - Downloads: Social Service Library
http://labs.adobe.com/downloads/social.html
- Tags:
- as3
- socialnetworking
- service
- API
- lib
October 30 2009, 1:03pm | Comments »
-
I posted to delicious.com
PeopleMaps Helps Graph Personal And Professional Connections
http://www.techcrunch.com/2009/10/20/peoplemaps-helps-graph-personal-and-professional-connections/
- Tags:
- socialnetworking
- business
October 20 2009, 6:32am | Comments »
-
I posted to i-create.org
ZendAMF and the Twitter API
http://i-create.org/2009/08/03/zendamf-and-the-twitter-api/
Have you ever had the urge to roll your own twitter? Well I have and I have tried a number of methods to come to the conclusion I needed to write everything from scratch. So I did and I wouldn’t say that I wasn’t without help. I did study Lee Brimelow’s gotoandlearn.com ZendAMF tutorial. So I went about downloading and install zend on my server and I found it was extremely easy to use. One of the many things that attracted me to the Zend framework were the prebuilt services. The zendframe work is a mature framework that has a great deal to offer developers so I will briefly show you a simple amf flash gateway built with zend to fetch the twitter service. Also please note you will have to create your own classes if you want to extend this but it should be pretty easy to do considering..
So first off download the zendframework. Configure your zendAMF endpoint. Create your own ZendAMF endpoint:
?View Code PHP<?php error_reporting(E_ALL|E_STRICT); ini_set("display_errors", "on"); ini_set("include_path", ini_get("include_path") . ":/home/toYourZend/FrameWorkHome/frameworks/zendFramework/library/"); require_once('Zend/Amf/Server.php'); require_once('TwitService.php'); $server = new Zend_Amf_Server(); //adding our class to Zend AMF Server $server->setClass("TwitService"); echo ( $server -> handle() ); ?>
Now configure your zend Twitter Service Create Your Twitter Service Class:
?View Code PHP<?php error_reporting(E_ALL|E_STRICT); ini_set("display_errors", "on"); ini_set("include_path", ini_get("include_path") . ":/home/toYourZend/FrameWorkHome/frameworks/zendFramework/library/"); require_once ('Zend/Service/Twitter.php'); require_once('VOgetFriendsTimeline.php'); //connection info class TwitService { public $tmp; public $twitter; public $response; public function __construct() { } public function getfriendsTimeline() { $twitter = new Zend_Service_Twitter('YourUserName', 'YourPassword'); $response = $twitter->status->friendsTimeline(); $tmp = new VOgetFriendsTimeline(); for ($i = 0; $i <= 18; $i++){ // array_push($tmp->userTwit, $response->status[$i]); array_push($tmp->userTwit, (string)$response->status[$i]->user->screen_name); array_push($tmp->statusPic, (string)$response->status[$i]->user->profile_image_url); array_push($tmp->locTwit, (string)$response->status[$i]->user->location); array_push($tmp->friendsTimeline, (string)$response->status[$i]->text); } return $tmp; } public function UserPostUpdate($tweet){ $twitter = new Zend_Service_Twitter('YourUserName', 'YourPassword'); $response = $twitter->status->update($tweet);
} }Now configure your flash variable object that is exposed by the service.
?View Code PHP<?php class VOgetFriendsTimeline { public $user_twit; public $pass_twit; public $locTwit = array(); public $friendsTimeline = array(); public $statusPic = array(); public $userTwit = array(); public $text; public function __construct() { } }
Finally configure your flex project to consume the service. Flash Twitter and Google Map Integration
?View Code ACTIONSCRIPT<?xml version="1.0" encoding="utf-8"?> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="600" height="300" xmlns:maps="com.google.maps." initialize="init()"> <mx:VBox width="100%" height="100%"> <mx:HBox width="100%" height="0" visible="false"> <mx:TextInput id="address" text="Sydney AU" dropShadowColor="0x000000" visible="false" /> </mx:HBox> <maps:Map id="map" key="yourAPI Key" mapevent_mapready="onMapReady(event)" width="100%" height="100%"/> </mx:VBox> <mx:Script> <![CDATA[ import com.SampleTitleWindow; import flash.events.Event; import mx.events.MenuEvent; import mx.collections.; import mx.managers.PopUpManager; import mx.controls.Alert; import nl.demonsters.debugger.MonsterDebugger; import flash.net.*; import com.google.maps.services.ClientGeocoderOptions; import com.google.maps.LatLng; import com.google.maps.Map; import com.google.maps.MapEvent; import com.google.maps.MapMouseEvent; import com.google.maps.MapType; import com.google.maps.services.ClientGeocoder; import com.google.maps.services.GeocodingEvent; import com.google.maps.overlays.Marker; import com.google.maps.overlays.MarkerOptions; import com.google.maps.InfoWindowOptions; import mx.controls.Alert; import com.google.maps.controls.ZoomControl; public var nc:NetConnection = new NetConnection(); public var resp:Responder = new Responder(onResult, onError); public var resp1:Responder = new Responder(onError); public var obj:Object = { }; public var tweetLocN:int = new int(); public var geoLocationTwit:Array = new Array(); public function init() { nc.objectEncoding = ObjectEncoding.AMF3; nc.connect("http://yoursite.com/toYour/zendEndpointAMF/index.php"); nc.call("TwitService.getfriendsTimeline",resp); } public function onResult(e:Object) { var arr:Array = []; for (var i:int = 0; i < e.friendsTimeline.length; i++ ) { if (e.locTwit[i] != "" ) { trace(e.locTwit[i]+"----------------Pushed!!!!!!!!!!!!!!!!!!!!"); try { address.text = e.locTwit[i]; doGeocodeTwit(e.locTwit[i], e.userTwit[i],e.friendsTimeline[i] ); } catch (epicFail:Error) { } trace("EpicFail Caught"); } trace(e.locTwit[i]+"Result Fired++++++++++"); tweetLocN = geoLocationTwit.length; arr.push(obj); } trace(obj.loc+"Result END++++++++++"); //datagrid.dataProvider = arr; } public function onError(e:Object) { trace("And the Error is !!!!"); trace(e); }
private function onMapReady(event:Event):void { map.enableScrollWheelZoom(); map.enableContinuousZoom(); map.addControl(new ZoomControl()); } private function doGeocodeTwit(event:String, userTwitter:String, userTweets:String):void { // Geocoding example trace(event+"String is+++++++++++++++++"); var geocoder1:ClientGeocoder = new ClientGeocoder(); geocoder1.addEventListener( GeocodingEvent.GEOCODING_SUCCESS, function(event:GeocodingEvent):void { var placemarks:Array = event.response.placemarks; trace(placemarks+"+++++++===== Ran PlaceMark"); if (placemarks.length > 0) { map.setCenter(placemarks[0].point); var marker:Marker = new Marker(placemarks[0].point); marker.addEventListener(MapMouseEvent.CLICK, function (event:MapMouseEvent):void { var mainTweet:String = new String(userTwitter + " - User - Tweet:" + userTweets); marker.openInfoWindow(new InfoWindowOptions({content: mainTweet})); }); map.addOverlay(marker); } }); geocoder1.addEventListener( GeocodingEvent.GEOCODING_FAILURE, function(event:GeocodingEvent):void { //Alert.show("Geocoding failed"); trace(event); trace(event.status); }); geocoder1.geocode(address.text); } ]]> </mx:Script> </mx:Canvas>Code Thats it! View the live example here! Other Cool Twitter Mashup links can be found:
Twitter MashUp Links
Don’t forget to check out Lee Brimelow’s GotoandLearn AMF video. Zend framework Zend Services Bookmark and Share More »Powered by Bookmarkify™
- Tags:
- ActionScript
- Flash
- Flex
- i-create
- MashUp
- socialnetworking
- php
- zendframework
- amf
- zendamf
August 3 2009, 3:08pm | Comments »
-
I posted to delicious.com
Getting started with the Adobe Flash Collaboration Service | InsideRIA
http://www.insideria.com/2009/07/introduction-to-the-adobe-flas-1.html
Social Coding
- Tags:
- as3
- socialnetworking
- programming
July 13 2009, 8:46am | Comments »
-
I posted to delicious.com
Building the user-centered web | Ben Werdmuller
http://benwerd.com/2009/07/building-the-user-centered-web/
- Tags:
- socialnetworking
- business
July 7 2009, 4:23am | Comments »
-
I posted to delicious.com
Google won't run all the Wave servers | Webware - CNET
http://news.cnet.com/8301-17939_109-10252579-2.html
- Tags:
- socialnetworking
- wave
- xmpp
May 31 2009, 6:52am | Comments »
-
I posted to delicious.com
as3xmpp - Google Code
http://code.google.com/p/as3xmpp/
xmpp lib
- Tags:
- as3
- socialnetworking
- xmpp
May 31 2009, 6:50am | Comments »
-
I posted to delicious.com
The Byte Scrolls: Develop an Open social application in 60 seconds
http://bytescrolls.blogspot.com/2009/03/develop-open-social-application-in-60.html
- Tags:
- socialnetworking
- opensocial
March 29 2009, 9:10pm | Comments »
-
I posted to delicious.com
Top 10 Facebook Apps: Extension - ReadWriteWeb
http://www.readwriteweb.com/archives/top_10_facebook_apps_extension.php
February 13 2009, 11:22pm | Comments »
